Fix typos
This commit is contained in:
parent
e362cb9c0e
commit
e38d00d4a3
|
@ -14,7 +14,7 @@ import Control.Lens.Optional
|
|||
||| left side of a sequence.
|
||||
public export
|
||||
interface Cons s t a b | s where
|
||||
||| An isomorphism that can inspact the left side of a sequence.
|
||||
||| An isomorphism that can inspect the left side of a sequence.
|
||||
consIso : Iso s t (Maybe (a, s)) (Maybe (b, t))
|
||||
|
||||
||| A prism that can attach or detach a value from the left side of a
|
||||
|
@ -45,7 +45,7 @@ nil = review consIso Nothing
|
|||
||| right side of a sequence.
|
||||
public export
|
||||
interface Snoc s t a b | s where
|
||||
||| An isomorphism that can inspact the right side of a sequence.
|
||||
||| An isomorphism that can inspect the right side of a sequence.
|
||||
snocIso : Iso s t (Maybe (s, a)) (Maybe (t, b))
|
||||
|
||||
||| This is a prism that can attach or detach a value from the right side of a
|
||||
|
|
|
@ -22,7 +22,7 @@ Just_ = prism Just $ \case
|
|||
infixl 9 .?
|
||||
|
||||
||| The composition `l .? l'` is equivalent to `l . Just_ . l'`.
|
||||
||| Useful for optics who focus type is a `Maybe`, such as `at`.
|
||||
||| Useful for optics whose focus type is a `Maybe`, such as `at`.
|
||||
public export
|
||||
(.?) : IsPrism p => Optic' p s t (Maybe a) (Maybe b) -> Optic' p a b a' b' -> Optic' p s t a' b'
|
||||
l .? l' = l . Just_ . l'
|
||||
|
|
Loading…
Reference in a new issue