Bryan O'Sullivan の Attoparsec ベースの HTTP パーサー ( http://www.serpentine.com/blog/2010/03/03/whats-in-a-parser-attoparsec-rewired-2/ )のテストを実行してみました。そして、私はこのエラーを受け取りました:
> runhaskell TestRFC2616.hs
TestRFC2616.hs:13:30:
Not in scope: `many'
Perhaps you meant one of these:
`any' (imported from Prelude),
`B.any' (imported from Data.ByteString.Char8),
many' (imported from Data.Attoparsec)
驚いたことに、ghci を実行したところ、次のようになりました。
> ghci
GHCi, version 7.6.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m +Data.Attoparsec
Prelude Data.Attoparsec> :t many
<interactive>:1:1:
Not in scope: `many'
Perhaps you meant one of these:
`any' (imported from Prelude),
many' (imported from Data.Attoparsec),
`many1' (imported from Data.Attoparsec)
Prelude Data.Attoparsec>
誰が何が起こっているのか教えてもらえますか?