1
1
mirror of https://github.com/github/semantic.git synced 2024-11-28 18:23:44 +03:00
semantic/test/fixtures/haskell/corpus/gadt-declarations.A.hs

13 lines
354 B
Haskell
Raw Normal View History

data Foo a b c where
2018-06-06 02:01:56 +03:00
Baz :: a -> b -> c -> Foo a b c
2018-06-07 00:42:25 +03:00
data Foo f a where
Bar :: { jolo :: Maybe String, runJolo :: f a } -> Foo f a
2018-06-07 01:41:57 +03:00
data Foo a :: [*] -> * where
data Number a where
Integer :: !Prelude.Integer -> Number Prelude.Integer
Ratio :: !Prelude.Rational -> Number Prelude.Rational
Decimal :: !Scientific -> Number Scientific