1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Add an eliminator for :=>.

This commit is contained in:
Rob Rix 2016-06-16 16:23:12 -04:00
parent a08b83432f
commit dcf9cdc6ae

View File

@ -29,6 +29,9 @@ newtype a :=> b = (:=>) (Tagged a b)
field :: b -> a :=> b field :: b -> a :=> b
field = (:=>) . Tagged field = (:=>) . Tagged
unField :: a :=> b -> b
unField ((:=>) b) = unTagged b
-- Classes -- Classes