diff --git a/.travis.yml b/.travis.yml index 62501f7a..619482d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,12 +13,13 @@ addons: packages: - ghc-7.8.4 - ghc-7.10.2 + - alex-3.1.4 - cabal-install-1.22 - libgmp-dev install: - (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc) - - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH + - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:/opt/alex/3.1.4/bin:$PATH - ghc --version - cabal --version - travis_retry cabal update diff --git a/servant-purescript/.travis.yml b/servant-purescript/.travis.yml deleted file mode 100644 index 57d6e12b..00000000 --- a/servant-purescript/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: haskell -ghc: - - 7.8 -notifications: - email: - on_success: change - on_failure: change -before_install: - - cabal sandbox init - - git clone https://github.com/haskell-servant/servant.git - - cabal sandbox add-source servant/ - - git clone https://github.com/haskell-servant/servant-jquery.git - - cabal sandbox add-source servant-jquery/ diff --git a/servant-purescript/servant-purescript.cabal b/servant-purescript/servant-purescript.cabal index cc3cc855..7c7929ea 100644 --- a/servant-purescript/servant-purescript.cabal +++ b/servant-purescript/servant-purescript.cabal @@ -11,19 +11,14 @@ copyright: 2015 Anchor category: Web build-type: Simple cabal-version: >=1.10 -Bug-reports: http://github.com/anchor/servant-purescript/issues +Bug-reports: http://github.com/haskell-servant/servant/issues source-repository head type: git - location: http://github.com/anchor/servant-purescript.git - -flag example - description: Build the example too - manual: True - default: False + location: http://github.com/haskell-servant/servant.git library exposed-modules: Servant.PureScript - build-depends: base >=4.8.1.0 && <5 + build-depends: base >=4.5 && <5 , lens >=4 , purescript >=0.7.5.3 , servant >=0.5 @@ -41,7 +36,7 @@ test-suite spec ghc-options: -Wall main-is: Spec.hs build-depends: - base >=4.8.1.0 && <5 + base >=4.5 && <5 , hspec >=2.0 , hspec-expectations , language-ecmascript >=0.17 @@ -52,6 +47,6 @@ test-suite spec , servant >=0.5 , servant-foreign >=0.5 , servant-js >=0.5 - , servant-purescript ==0.0.2 + , servant-purescript , string-conversions default-language: Haskell2010 diff --git a/servant-purescript/src/Servant/PureScript.hs b/servant-purescript/src/Servant/PureScript.hs index f583442c..b3677bb6 100644 --- a/servant-purescript/src/Servant/PureScript.hs +++ b/servant-purescript/src/Servant/PureScript.hs @@ -14,7 +14,7 @@ module Servant.PureScript ( import Control.Arrow ((&&&)) import Control.Lens (makeLenses, (^.), (^..), view) import Data.Char (toUpper, toLower) -import Data.Proxy (Proxy(Proxy)) +import Data.Proxy (Proxy) import Data.String.Conversions (ConvertibleStrings, ST, cs, (<>)) import qualified Data.Text as T import qualified Servant.JS as JS diff --git a/servant-purescript/test/Spec.hs b/servant-purescript/test/Spec.hs index c3aef072..214f1e22 100644 --- a/servant-purescript/test/Spec.hs +++ b/servant-purescript/test/Spec.hs @@ -8,11 +8,9 @@ module Main where import Control.Monad -import Control.Monad.IO.Class import Data.Either (isRight) import Data.Proxy import Data.String.Conversions -import qualified Data.Text.IO as ST import qualified Language.PureScript as P import Servant.API import Servant.Foreign as F diff --git a/sources.txt b/sources.txt index 24719355..48dcdee0 100644 --- a/sources.txt +++ b/sources.txt @@ -9,3 +9,4 @@ servant-examples servant-blaze servant-lucid servant-mock +servant-purescript