From ff858ec38ea5795be1d697e0151526b34f568bcd Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 7 Dec 2022 10:21:20 +0000 Subject: [PATCH] Remove this dependency. --- digit.cabal | 1 - src/Data/Digit.hs | 2 +- stack.yaml | 6 +----- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/digit.cabal b/digit.cabal index 093a7c3..f016809 100644 --- a/digit.cabal +++ b/digit.cabal @@ -12,7 +12,6 @@ library build-depends: base , QuickCheck , lens - , missing-lens , regex-applicative , text default-language: Haskell2010 diff --git a/src/Data/Digit.hs b/src/Data/Digit.hs index cabf093..5614e4f 100644 --- a/src/Data/Digit.hs +++ b/src/Data/Digit.hs @@ -23,7 +23,6 @@ module Data.Digit ) where import Control.Lens -import Control.Lens.Missing import Data.Foldable as F import Data.List as L import Data.List.NonEmpty as NE @@ -117,6 +116,7 @@ _Digits = below _Digit _DigitsText :: Prism' Text (NE.NonEmpty Digit) _DigitsText = from packed . _Digits . _NonEmptyList + where _NonEmptyList = prism' NE.toList NE.nonEmpty _DigitsInt :: Integral n => Prism' n NormalDigits _DigitsInt = prism' (digitsToNum . unDigits) positiveIntToDigits diff --git a/stack.yaml b/stack.yaml index 5af6f43..eef8d1a 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,8 +1,4 @@ -resolver: lts-19.0 +resolver: lts-20.3 packages: - . - -extra-deps: -- git: https://github.com/typeable/missing-lens.git - commit: 328659fdda8fd7ec509abfab6298775062fc2926