Skip to content

Parsing failure with type-level lists #982

Closed
@KaneTW

Description

@KaneTW

The following valid Haskell code

{-# LANGUAGE DataKinds, TypeOperators, PolyKinds #-}
module Bug where

data A (a :: [*]) 
data B 
data a :> b
data a :<|> b

type Fail = A '[] :> ( A '[] :<|> B)

fails to parse with haskell-mode. When using haskell-indentation-mode, pressing TAB fails with No catch for tag: parse-error, "Illegal token: )"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions