Stack, AMP.

This commit is contained in:
vi 2015-11-04 23:15:00 +08:00
parent af2a14d7b3
commit 9d156f17b0
5 changed files with 22 additions and 11 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
dist/
.stack-work/

View file

@ -35,7 +35,7 @@ library
build-depends:
base >= 4.6,
directory >= 1.2 && < 1.3,
filepath >= 1.3 && < 1.4,
filepath >= 1.3 && < 1.5,
text >= 1.1 && < 1.3,
functor-infix >= 0.0 && < 0.1
hs-source-dirs:

View file

@ -32,16 +32,16 @@ library
Data.HTTPSEverywhere.Rules.Internal.Types,
Data.Text.ICU.Extras
build-depends:
base >= 4.7 && < 4.8,
base >= 4.7 && < 4.9,
attoparsec >= 0.12 && < 0.13,
errors >= 1.4 && < 1.5,
errors >= 1.4 && < 2.1,
functor-infix >= 0.0 && < 0.1,
http-client >= 0.3 && < 0.5,
lens >= 4.3 && < 4.6,
lens >= 4.3 && < 4.13,
network >= 2.6 && < 2.7,
network-uri >= 2.6 && < 2.7,
pipes >= 4.1 && < 4.2,
string-conversions >= 0.3 && < 0.4,
string-conversions >= 0.3 && < 0.5,
taggy-lens >= 0.1 && < 0.2,
text >= 1.1 && < 1.3,
text-icu >= 0.6 && < 0.8,
@ -57,17 +57,17 @@ test-suite spec
type:
exitcode-stdio-1.0
build-depends:
base >= 4.7 && < 4.8,
base >= 4.7 && < 4.9,
attoparsec >= 0.12 && < 0.13,
errors >= 1.4 && < 1.5,
errors >= 1.4 && < 2.1,
functor-infix >= 0.0 && < 0.1,
hspec >= 2.0 && < 2.1,
hspec >= 2.0 && < 2.2,
http-client >= 0.3 && < 0.5,
lens >= 4.3 && < 4.6,
lens >= 4.3 && < 4.13,
network >= 2.6 && < 2.7,
network-uri >= 2.6 && < 2.7,
pipes >= 4.1 && < 4.2,
string-conversions >= 0.3 && < 0.4,
string-conversions >= 0.3 && < 0.5,
taggy-lens >= 0.1 && < 0.2,
text >= 1.1 && < 1.3,
text-icu >= 0.6 && < 0.8,

View file

@ -10,9 +10,10 @@ module Data.HTTPSEverywhere.Rules.Internal.Parser (
) where
import Prelude hiding (head, last, tail, init)
import Control.Applicative ((<$>))
import Control.Lens (toListOf, only, to, (^..), (^.), (&), (<&>), _Just)
import Control.Monad (join)
import Data.Functor.Infix ((<$>),(<$$>))
import Data.Functor.Infix ((<$$>))
import Data.Maybe (catMaybes, fromJust, fromMaybe)
import Data.String.Conversions (cs)
import qualified Data.Text as Strict (Text)

9
stack.yaml Normal file
View file

@ -0,0 +1,9 @@
flags: {}
packages:
- https-everywhere-rules/
- https-everywhere-rules-raw/
extra-deps:
- functor-infix-0.0.3
- taggy-0.2.0
- taggy-lens-0.1.2
resolver: lts-3.12