Safe Haskell | Safe |
---|
Testing some pattern synonyms
Synopsis
- data FooType x = FooCtor x
- pattern Foo :: x -> FooType x
- pattern Bar :: x -> FooType (FooType x)
- pattern (:<->) :: x -> x1 -> (FooType x, FooType (FooType x1))
- data BlubType = forall x.Show x => BlubCtor x
- pattern Blub :: () => Show x => x -> BlubType
- data (a :: *) >< b = Empty
- pattern E :: a >< b
- pattern PatWithExplicitSig :: Eq somex => somex -> FooType somex
Documentation
pattern PatWithExplicitSig :: Eq somex => somex -> FooType somex #
Earlier ghc versions didn't allow explicit signatures on pattern synonyms.