generated from tpl/purs
Add Foreign instances
This commit is contained in:
parent
9cb40b5112
commit
35f9da6f50
@ -77,6 +77,12 @@ instance fromSQLValueMaybe :: (FromSQLValue a) => FromSQLValue (Maybe a) where
|
|||||||
fromSQLValue x | isNull x = pure Nothing
|
fromSQLValue x | isNull x = pure Nothing
|
||||||
| otherwise = Just <$> fromSQLValue x
|
| otherwise = Just <$> fromSQLValue x
|
||||||
|
|
||||||
|
instance toSQLValueForeign :: ToSQLValue Foreign where
|
||||||
|
toSQLValue = id
|
||||||
|
|
||||||
|
instance fromSQLValueForeign :: FromSQLValue Foreign where
|
||||||
|
fromSQLValue = pure
|
||||||
|
|
||||||
foreign import null :: Foreign
|
foreign import null :: Foreign
|
||||||
foreign import instantToString :: Instant -> Foreign
|
foreign import instantToString :: Instant -> Foreign
|
||||||
foreign import unsafeIsBuffer :: ∀ a. a -> Boolean
|
foreign import unsafeIsBuffer :: ∀ a. a -> Boolean
|
||||||
|
Loading…
Reference in New Issue
Block a user