git.iko.soy/typeable/schematic
on master help sign in
Add syntax highlighting
6f956c3Denis Redozubov
README.md+1−1
@@ -178,7 +178,7 @@ Data migrations on the other hand are functions on the data itself. They transfo
178acceptable by one schema to values acceptable by another.
178acceptable by one schema to values acceptable by another.
179Let's look at the situation when we have to add a field to a JSON Object of a current schema:
179Let's look at the situation when we have to add a field to a JSON Object of a current schema:
180
180
181−```
181+```haskell
182type SchemaExample = 'SchemaObject
182type SchemaExample = 'SchemaObject
183 '[ '("foo", 'SchemaArray '[ 'AEq 1] ('SchemaNumber '[ 'NGt 10]))
183 '[ '("foo", 'SchemaArray '[ 'AEq 1] ('SchemaNumber '[ 'NGt 10]))
184 , '("bar", 'SchemaOptional ('SchemaText '[ 'TEnum '["foo", "bar"]]))]
184 , '("bar", 'SchemaOptional ('SchemaText '[ 'TEnum '["foo", "bar"]]))]