]> git.immae.eu Git - github/fretlink/text-pipes.git/commitdiff
travis
authormichaelt <what_is_it_to_do_anything@yahoo.com>
Tue, 11 Nov 2014 22:52:47 +0000 (17:52 -0500)
committermichaelt <what_is_it_to_do_anything@yahoo.com>
Tue, 11 Nov 2014 22:52:47 +0000 (17:52 -0500)
.travis.yml
Pipes/Text.hs

index 6a2191350c0d1aca4babb0e042691f8009dbf28a..c099defb6f0a5d0b552e6b89c5e3e9868d513e0e 100644 (file)
@@ -1 +1,20 @@
-language: haskell
\ No newline at end of file
+language: haskell
+
+before_install:
+  # Uncomment whenever hackage is down.
+  # - mkdir -p ~/.cabal && cp travis/config ~/.cabal/config && cabal update
+
+  # Try installing some of the build-deps with apt-get for speed.
+  - travis/cabal-apt-install $mode
+
+install:
+  - cabal configure $mode
+  - cabal build
+
+notifications:
+  irc:
+    channels:
+      - "irc.freenode.org##piffle"
+    skip_join: true
+    template:
+      - "\x0313linear\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"
index 0f2e31d57dd53d260a68022ac8eaae09a5ee5025..f71f17f77528b2acbaa7b1785d5cf54e2c0b96d7 100644 (file)
@@ -148,7 +148,7 @@ a ^. lens = getConstant (lens Constant a)
 -- | Apply a transformation to each 'Char' in the stream
 
 -- >>> let margaret =  ["Margaret, are you grieving\nOver Golde","ngrove unleaving?":: Text]
--- >>> TL.putStrLn $ toLazy $ each margaret >-> map Data.Char.toUpper
+-- >>> TL.putStrLn . toLazy $ each margaret >-> map Data.Char.toUpper
 -- MARGARET, ARE YOU GRIEVING
 -- OVER GOLDENGROVE UNLEAVING?
 map :: (Monad m) => (Char -> Char) -> Pipe Text Text m r
@@ -168,7 +168,7 @@ take :: (Monad m, Integral a) => a -> Pipe Text Text m ()
 take n0 = go n0 where
     go n
         | n <= 0    = return ()
-        | otherwise = do
+        | otherwise = do 
             txt <- await
             let len = fromIntegral (T.length txt)
             if (len > n)