Skip to content

Commit

Permalink
Merge pull request #21 from higherkindness/quick-fix-for-skeuomorph-e…
Browse files Browse the repository at this point in the history
…xample

Readme skeuomorph example compiles and uses printSchema variable.
  • Loading branch information
pepegar authored Nov 14, 2018
2 parents 196f743 + 6a3a114 commit 1220e44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ val definition = """
val schema: Schema = new Schema.Parser().parse(definition)
val parseAvro: Schema => Mu[FreesF] =
scheme.hylo(transformAvro[Mu[FreesF]].algebra.run, fromAvro.run)
scheme.hylo(transformAvro[Mu[FreesF]].algebra, fromAvro)
val printSchema: Mu[FreesF] => String =
scheme.cata(render)
(parseAvro >>> print)(schema)
(printSchema >>> print)(parseAvro(schema))
```


Expand All @@ -118,4 +119,4 @@ Skeuomorph is designed and developed by 47 Degrees

Copyright (C) 2018 47 Degrees. <http://47deg.com>

[comment]: # (End Copyright)
[comment]: # (End Copyright)

0 comments on commit 1220e44

Please sign in to comment.