@@ -24,12 +24,12 @@
2424-----------------------------------------------------------------------------
2525
2626module Data.Generics.Product.Numbered
27− ( -- * Lenses
27+ ( -- *Lenses
2828 --
29− -- $example
29+ -- $example
3030 HasPosition (..)
3131
32− -- * Internals
32+ -- *Internals
3333 , GHasPosition (..)
3434 ) where
3535
@@ -57,18 +57,18 @@ import GHC.TypeLits
5757-- human = Human \"Tunyasz\" 50 \"London\"
5858-- @
5959
60−-- | Records that have a field at a given position.
60+-- |Records that have a field at a given position.
6161class HasPosition (i :: Nat) a s | s i -> a where
62− -- | A lens that focuses on a field at a given position. Compatible with the
63− -- lens package's 'Control.Lens.Lens' type.
62+ -- |A lens that focuses on a field at a given position. Compatible with the
63+ -- lens package's 'Control.Lens.Lens' type.
6464 --
65− -- >>> human ^. numbered @1
66− -- "Tunyasz"
67− -- >>> human & numbered @2 .~ "Berlin"
68− -- Human {name = "Tunyasz", age = 50, address = "Berlin"}
65+ -- >>> human ^. numbered @1
66+ -- "Tunyasz"
67+ -- >>> human & numbered @2 .~ "Berlin"
68+ -- Human {name = "Tunyasz", age = 50, address = "Berlin"}
6969 numbered :: Lens' s a
7070
71−-- | The base index from which positions are counted.
71+-- |The base index from which positions are counted.
7272type BaseIndex
7373 = 1
7474
@@ -94,8 +94,8 @@ type family ErrorUnlessTrue (i :: Nat) (s :: Type) (hasP :: Bool) :: Constraint
9494 ErrorUnlessTrue _ _ 'True
9595 = ()
9696
97−-- | As 'HasPosition' but over generic representations as defined by
98−-- "GHC.Generics".
97+-- |As 'HasPosition' but over generic representations as defined by
98+-- "GHC.Generics".
9999class GHasPosition (offset :: Nat) (i :: Nat) (f :: Type -> Type) a | offset i f -> a where
100100 gnumbered :: Lens' (f x) a
101101