Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add indexed optics. #30

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions profunctor-optics/profunctor-optics.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ source-repository head
library
exposed-modules:
Data.Tuple.Optic
Data.Either.Optic


Data.Profunctor.Rep.Foldl
Data.Profunctor.Rep.Foldl1

Data.Profunctor.Optic
Data.Profunctor.Optic.Types
Data.Profunctor.Optic.Pattern
Data.Profunctor.Optic.Property
Data.Profunctor.Optic.Carrier
Data.Profunctor.Optic.Combinator
Expand Down Expand Up @@ -83,20 +83,20 @@ library

ghc-options: -Wall -Wincomplete-uni-patterns -Wincomplete-record-updates
build-depends:
base >= 4.9 && < 5.0
, adjunctions >= 4.4 && < 5.0
, coapplicative >= 0.0.1 && < 0.2
, distributive >= 0.3 && < 1
, lawz >= 0.1.1 && < 0.2
, foldl >= 1.4.5 && < 1.5
, mtl >= 2.0.1 && < 2.3
, newtype-generics >= 0.5.3 && < 0.6
, profunctors >= 5.4 && < 6
, rings >= 0.1.3 && < 0.1.4
, semigroupoids >= 5 && < 6
, tagged >= 0.4.4 && < 1
, transformers >= 0.5 && < 0.6

base >= 4.10 && < 5.0
, adjunctions >= 4.4
, coapplicative >= 0.0.1
, distributive >= 0.3
, lawz >= 0.1.1
, mtl >= 2.0.1
, mono-traversable >= 1.0.13.0
, newtype-generics >= 0.5.3
, profunctors >= 5.4
, semigroupoids >= 5
, strict >= 0.3.2
, tagged >= 0.4.4
, transformers >= 0.5
, these-skinny >= 0.7.4

executable doctest
main-is: doctest.hs
Expand All @@ -107,7 +107,8 @@ executable doctest

build-depends:
base
, doctest >= 0.8
, bytestring
, doctest >= 0.8
, mtl
, profunctor-optics

Expand Down
27 changes: 0 additions & 27 deletions profunctor-optics/src/Data/Either/Optic.hs

This file was deleted.

6 changes: 6 additions & 0 deletions profunctor-optics/src/Data/Profunctor/Optic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
{-# LANGUAGE TupleSections #-}
{-# LANGUAGE TypeOperators #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE PolyKinds #-}
{-# LANGUAGE DeriveFunctor #-}
module Data.Profunctor.Optic (
module Types
, module Carrier
, module Combinator
, module Pattern
, module Property
, module Iso
, module Prism
, module Lens
Expand All @@ -24,6 +28,8 @@ module Data.Profunctor.Optic (
import Data.Profunctor.Optic.Types as Types
import Data.Profunctor.Optic.Carrier as Carrier
import Data.Profunctor.Optic.Combinator as Combinator
import Data.Profunctor.Optic.Pattern as Pattern
import Data.Profunctor.Optic.Property as Property
import Data.Profunctor.Optic.Iso as Iso
import Data.Profunctor.Optic.Prism as Prism
import Data.Profunctor.Optic.Lens as Lens
Expand Down
Loading