]> git.immae.eu Git - github/fretlink/text-pipes.git/commitdiff
Merge pull request #3 from Gabriel439/nocpp
authorMichael Thompson <what_is_it_to_do_anything@yahoo.com>
Thu, 6 Feb 2014 04:16:13 +0000 (23:16 -0500)
committerMichael Thompson <what_is_it_to_do_anything@yahoo.com>
Thu, 6 Feb 2014 04:16:13 +0000 (23:16 -0500)
Removed use of CPP to guard Trustworthy

1  2 
Pipes/Text.hs

diff --combined Pipes/Text.hs
index f85f0ee5ad35bb71fb667caefd107503b826f228,a4ad221311d3e50e4e3634d0b4f15ca114c8b98b..eb72be25905d0552ad0152df3cdd84f73338730c
@@@ -1,7 -1,5 +1,5 @@@
- {-# LANGUAGE RankNTypes, TypeFamilies, BangPatterns, CPP #-}
- #if __GLASGOW_HASKELL__ >= 702
- {-# LANGUAGE Trustworthy #-}
- #endif
+ {-# LANGUAGE RankNTypes, TypeFamilies, BangPatterns, Trustworthy #-}
  {-| This module provides @pipes@ utilities for \"text streams\", which are
      streams of 'Text' chunks. The individual chunks are uniformly @strict@, but 
      a 'Producer' can be converted to and from lazy 'Text's, though this is generally 
@@@ -29,11 -27,11 +27,11 @@@ To stream from files, the following is 
  > main = runSafeT $ runEffect $ Text.readFile "inFile.txt" >-> Text.writeFile "outFile.txt"
  
      You can stream to and from 'stdin' and 'stdout' using the predefined 'stdin'
 -    and 'stdout' proxies, as with the following \"echo\" program:
 +    and 'stdout' pipes, as with the following \"echo\" program:
  
  > main = runEffect $ Text.stdin >-> Text.stdout
  
 -    You can also translate pure lazy 'TL.Text's to and from proxies:
 +    You can also translate pure lazy 'TL.Text's to and from pipes:
  
  > main = runEffect $ Text.fromLazy (TL.pack "Hello, world!\n") >-> Text.stdout