NOTE: the latest version is 3.0.1
Morph for a Bit
Morph
Bit
'0' or '1'
'0'
'1'
n0 ↔ O, n1 ↔ I
n0
O
n1
I
Match a specific given Bit and not the other one.
import Morph import Bit Bit.O |> Morph.toNarrow (Bit.Morph.only Bit.I) --> Err (Morph.DeadEnd "0")
'0'or'1'