Add Inject instance for () (#147)

This commit is contained in:
bosu 2017-09-29 22:49:34 +03:00 committed by Gabriel Gonzalez
parent adcae09068
commit 0e8a4c9b25

View File

@ -760,6 +760,13 @@ instance Inject Double where
declared = Double
instance Inject () where
injectWith _ = InputType {..}
where
embed = const (RecordLit Data.Map.empty)
declared = Record Data.Map.empty
instance Inject a => Inject (Maybe a) where
injectWith options = InputType embedOut declaredOut
where