Skip to content

Commit

Permalink
reference to <|> replaced by Compose functions in the README (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michel Belleville authored and arturopala committed Nov 28, 2019
1 parent b8dd1b9 commit e7e6588
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 @@ -63,7 +63,7 @@ streetNameOfAddress =

regionOfPlace : Optional Place String
regionOfPlace =
addressOfPlace => regionOfAddress
addressOfPlace |> Monocle.Compose.optionalWithOptional regionOfAddress


streetNameOfPlace : Optional Place String
Expand Down Expand Up @@ -211,7 +211,8 @@ A Optional is a weaker Lens and a weaker Prism.
string2IntPrism = Prism (String.toInt >> Result.toMaybe) toString

addressRegionIntOptional: Optional Address Int
addressRegionIntOptional = addressRegionOptional => (fromPrism string2IntPrism)
addressRegionIntOptional =
addressRegionOptional |> Monocle.Compose.optionalWithPrism string2IntPrism

string2CharListIso : Iso String (List Char)
string2CharListIso = Iso String.toList String.fromList
Expand Down

0 comments on commit e7e6588

Please sign in to comment.