Skip to content

Parsing failure with type-level lists #982

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KaneTW opened this issue Nov 7, 2015 · 2 comments
Closed

Parsing failure with type-level lists #982

KaneTW opened this issue Nov 7, 2015 · 2 comments

Comments

@KaneTW
Copy link

KaneTW commented Nov 7, 2015

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: )"

@gracjan
Copy link
Contributor

gracjan commented Nov 7, 2015 via email

@KaneTW
Copy link
Author

KaneTW commented Nov 7, 2015

Just tested with HEAD. Seems to be fixed.

@KaneTW KaneTW closed this as completed Nov 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants