Skip to content
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

Bug with explicit forall in GADTs #335

Closed
noughtmare opened this issue Jan 12, 2021 · 1 comment
Closed

Bug with explicit forall in GADTs #335

noughtmare opened this issue Jan 12, 2021 · 1 comment

Comments

@noughtmare
Copy link

Input:

{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExplicitForAll #-}

data Some where
  Some :: forall a. a -> Some

Output:

{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExplicitForAll #-}

data Some where
  Some :: a a -> Some

Expected:

{-# LANGUAGE GADTs #-}
{-# LANGUAGE ExplicitForAll #-}

data Some where
  Some :: forall a . a -> Some
$ brittany --version
brittany version 0.13.0.0
Copyright (C) 2016-2019 Lennart Spitzner
Copyright (C) 2019 PRODA LTD
There is NO WARRANTY, to the extent permitted by law.
@tfausak
Copy link
Collaborator

tfausak commented Jan 12, 2021

I think this is the same as #242. Please re-open if that's not the case!

@tfausak tfausak closed this as completed Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants