-
Notifications
You must be signed in to change notification settings - Fork 68
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
Brittany fails on explicit kinded data parameters #310
Comments
I was not able to reproduce this error. Which version of Brittany are you using? # cat issue-310.hs
data Email (a :: k) = Email UserName Domain
data (a :: Symbol) ++: (b :: Type)
# brittany --version
brittany version 0.12.1.1
Copyright (C) 2016-2019 Lennart Spitzner
Copyright (C) 2019 PRODA LTD
There is NO WARRANTY, to the extent permitted by law.
# brittany issue-310.hs
data Email (a :: k) = Email UserName Domain
data (a :: Symbol) ++: (b :: Type) |
Thanks for checking this out. I was using the latest master at this commit:
with this error: |
I think I ran into something similar: data Foo (bar :: Symbol)
-- This line causes brittany to throw the error
type Baz = Foo "a" can be worked around by adding |
I also ran into an error with a similar code. The log says the following.
This can be reproduced by following the steps below. Although the following uses the released zip file, the same error occurs when installed with cabal-install.
|
Examples where it's failing:
The text was updated successfully, but these errors were encountered: