mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
Define a RightModule instance for Intro.
This commit is contained in:
parent
20591377da
commit
23d1c84342
@ -57,6 +57,13 @@ deriving instance (Show a, forall a . Show a => Show (f a)) => Show (In
|
|||||||
|
|
||||||
instance HFunctor Intro
|
instance HFunctor Intro
|
||||||
|
|
||||||
|
instance RightModule Intro where
|
||||||
|
Unit >>=* _ = Unit
|
||||||
|
Bool b >>=* _ = Bool b
|
||||||
|
String s >>=* _ = String s
|
||||||
|
Record fs >>=* f = Record (map (fmap (>>= f)) fs)
|
||||||
|
Lam n b >>=* f = Lam n (b >>=* f)
|
||||||
|
|
||||||
|
|
||||||
-- | User-specified and -relevant names.
|
-- | User-specified and -relevant names.
|
||||||
newtype Name = Name { unName :: Text }
|
newtype Name = Name { unName :: Text }
|
||||||
|
Loading…
Reference in New Issue
Block a user