Skip to content

Commit e75fdbe

Browse files
committed
Explicit export of optics
1 parent 163d2b5 commit e75fdbe

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

src/Control/Optics/Linear/Internal.hs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,33 @@
66
{-# LANGUAGE RankNTypes #-}
77
{-# LANGUAGE TypeOperators #-}
88

9-
module Control.Optics.Linear.Internal where
9+
module Control.Optics.Linear.Internal
10+
( -- * Types
11+
Optic_(..)
12+
, Optic
13+
, Iso, Iso'
14+
, Lens, Lens'
15+
, Prism, Prism'
16+
, Traversal, Traversal'
17+
-- * Composing optics
18+
, (.>)
19+
-- * Common optics
20+
, swap, assoc
21+
, _1, _2
22+
, _Left, _Right
23+
, _Just, _Nothing
24+
, traversed
25+
-- * Using optics
26+
, get, set, gets
27+
, match, match', build
28+
, over, over'
29+
, traverseOf, traverseOf'
30+
, lengthOf
31+
, withIso
32+
-- * Constructing optics
33+
, iso, prism
34+
)
35+
where
1036

1137
import qualified Data.Bifunctor.Linear as Bifunctor
1238
import Data.Bifunctor.Linear (SymmetricMonoidal)

0 commit comments

Comments
 (0)