git.iko.soy/typeable/schematic
on master help sign in
Add syntax highlighting
commit6f956c3fe015ca59b195393bdea951a1937134b5 authorDenis Redozubov <denis.redozubov@gmail.com> dateFri 27 Oct 2017, 13:07 (9 years ago) parent87c1751
1 file changed+1−1
README.md+1−1
README.md+1−1
@@ -178,7 +178,7 @@ Data migrations on the other hand are functions on the data itself. They transfo
178178acceptable by one schema to values acceptable by another.
179179Let's look at the situation when we have to add a field to a JSON Object of a current schema:
180180
181−```
181+```haskell
182182type SchemaExample = 'SchemaObject
183183 '[ '("foo", 'SchemaArray '[ 'AEq 1] ('SchemaNumber '[ 'NGt 10]))
184184 , '("bar", 'SchemaOptional ('SchemaText '[ 'TEnum '["foo", "bar"]]))]