title: Data.ByteString.Char8 does not export stripSuffix
body: <p>I'm working on a stream of ByteStrings. I've imported ByteString via:</p>
  
  <pre><code>import qualified Data.ByteString as B
  </code></pre>
  
  <p>I can call every function from the ByteString library e.g.:</p>
  
  <pre><code>reverseBS :: Monad m =&gt; Conduit B.ByteString m B.ByteString
  reverseBS = CL.map B.reverse
  </code></pre>
  
  <p>This works as intended. </p>
  
  <p>I need a function to remove the trailing newline from a ByteString. I've opted to use <a href="https://hackage.haskell.org/package/bytestring-0.10.8.1/docs/Data-ByteString.html#v:stripSuffix" rel="nofollow noreferrer">stripSuffix</a> from <a href="https://hackage.haskell.org/package/bytestring-0.10.8.1/docs/Data-ByteString.html" rel="nofollow noreferrer">ByteString</a>. My code looks like this:</p>
  
  <pre><code>removeNewline :: Monad m =&gt; Conduit B.ByteString m B.ByteString
  removeNewline = CL.map $ B.stripSuffix "\n"
  </code></pre>
  
  <p>But my code won't compile and gives the following error: </p>
  
  <pre><code>Not in scope: ‘B.stripSuffix’
  </code></pre>
  
  <p>I've tried install the latest version of ByteString from <a href="https://github.com/haskell/bytestring" rel="nofollow noreferrer">GitHub</a> but this didn't help. </p>
  
  <p>EDIT:</p>
  
  <p>I noticed that there's something wrong with my ghc-pkg list. It give me the following output:</p>
  
  <pre><code>Thomass-MacBook-Pro:src ThomasVanhelden$ ghc-pkg list
  /Applications/ghc-7.10.3.app/Contents/lib/ghc-7.10.3/package.conf.d
     Cabal-1.22.5.0
     array-0.5.1.0
     base-4.8.2.0
     bin-package-db-0.0.0.0
     binary-0.7.5.0
     bytestring-0.10.6.0
     containers-0.5.6.2
     deepseq-1.4.1.1
     directory-1.2.2.0
     filepath-1.4.0.0
     ghc-7.10.3
     ghc-prim-0.4.0.0
     haskeline-0.7.2.1
     hoopl-3.10.0.2
     hpc-0.6.0.2
     integer-gmp-1.0.0.0
     pretty-1.1.2.0
     process-1.2.3.0
     rts-1.0
     template-haskell-2.10.0.0
     terminfo-0.4.0.1
     time-1.5.0.1
     transformers-0.4.2.0
     unix-2.7.1.0
     xhtml-3000.2.1
  /Users/ThomasVanhelden/.ghc/x86_64-darwin-7.10.3/package.conf.d
     WAVE-0.1.3
     abstract-deque-0.3
     abstract-par-0.3.3
     async-2.1.1
     attoparsec-0.13.1.0
     base16-bytestring-0.1.1.6
     base64-bytestring-1.0.0.1
     blaze-builder-0.4.0.2
     bytestring-0.10.8.2
     bytestring-lexing-0.5.0.2
     cereal-0.5.4.0
     chunked-data-0.3.0
     conduit-1.2.8
     conduit-combinators-1.0.8.3
     conduit-extra-1.1.15
     exceptions-0.8.3
     extensible-exceptions-0.1.1.4
     fail-4.9.0.0
     hashable-1.2.4.0
     lifted-base-0.2.3.8
     mmorph-1.0.9
     monad-control-1.0.1.0
     monad-par-0.3.4.8
     monad-par-extras-0.3.3
     mono-traversable-1.0.1
     mtl-2.2.1
     mwc-random-0.13.5.0
     network-2.6.3.1
     network-conduit-1.1.0
     parallel-3.2.1.0
     parallel-io-0.3.3
     parseargs-0.2.0.8
     primitive-0.6.1.0
     random-1.1
     resourcet-1.1.8.1
     scientific-0.3.4.9
     semigroups-0.18.2
     split-0.2.3.1
     stm-2.4.4.1
     streaming-commons-0.1.16
     tagged-0.8.5
     text-1.2.2.1
     transformers-base-0.4.4
     transformers-compat-0.5.1.4
     unix-compat-0.4.2.0
     unordered-containers-0.2.7.1
     vector-0.11.0.0
     vector-algorithms-0.7.0.1
     void-0.7.1
     word8-0.1.2
     zlib-0.6.1.2
  </code></pre>
  
  <p>It looks like it is looking in two different directories for packages and two different versions of ByteString might be the cause of the problem. How can I solve this? Is there a simple way to uninstall bytestring-0.10.6.0?</p>