Add Inject instance for Int (#99)

This commit is contained in:
bosu 2017-08-20 20:24:24 +03:00 committed by Gabriel Gonzalez
parent 4e881450a0
commit 2a186dcabb

View File

@ -698,6 +698,14 @@ instance Inject Integer where
declared = Integer
instance Inject Int where
injectWith _ = InputType {..}
where
embed = IntegerLit . toInteger
declared = Integer
instance Inject Double where
injectWith _ = InputType {..}
where