Skip to content

Instantly share code, notes, and snippets.

@ndmitchell
Created August 9, 2018 19:00
Show Gist options
  • Save ndmitchell/fbc5f16a59758dcae58e6a3001ad0a16 to your computer and use it in GitHub Desktop.
Save ndmitchell/fbc5f16a59758dcae58e6a3001ad0a16 to your computer and use it in GitHub Desktop.
data Foo where
Bar :: Foo
Baz :: Foo
deriving Show
-- seems to be parsed as:
data Foo where {
Bar :: Foo;
Baz :: foo}
deriving Show
-- why not:
data Foo where {
Bar :: Foo;
Baz :: foo;
deriving Show}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment