Skip to content

Commit

Permalink
Add a data type we can use to box up equality evidence for -XConstrai…
Browse files Browse the repository at this point in the history
…ntKind
  • Loading branch information
batterseapower committed Sep 6, 2011
1 parent 9cd14ba commit c7623fc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions GHC/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ or the '>>' and '>>=' operations from the 'Monad' class.
newtype IO a = IO (State# RealWorld -> (# State# RealWorld, a #))


-- | A data constructor used to box up all unlifted equalities
--
-- The type constructor is special in that GHC pretends that it
-- has kind (? -> ? -> Fact) rather than (* -> * -> *)
data (~) a b = Eq# ((~#) a b)


--------------------------------------------------------------------------------
-- Generic representations
--------------------------------------------------------------------------------
Expand Down

0 comments on commit c7623fc

Please sign in to comment.