Validate values

This commit is contained in:
2021-02-03 05:42:10 +01:00
parent ebf4f4d24e
commit a034f2ce4d
4 changed files with 119 additions and 3 deletions

View File

@ -252,6 +252,9 @@ data ObjectField a = ObjectField
, location :: Location
} deriving (Eq, Show)
instance Functor ObjectField where
fmap f ObjectField{..} = ObjectField name (f <$> value) location
-- ** Variables
-- | Variable definition.