stack scripting packages - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

reactormonk

I have a script with the header

{- stack script
 --resolver lts-17.4
 --package "megaparsec wreq lens aeson lens-aeson unliftio text bytestring http-client-openssl HsOpenSSL http-client directory extra"
 --ghc-options "-threaded"
-}

But I'm getting

    Could not load module ‘Text.Megaparsec.Lexer’
    it is a hidden module in the package ‘megaparsec-9.0.1’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | import qualified Text.Megaparsec.Lexer as L
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Torsten Schmits

you have to use Text.Megaparsec.Byte.Lexer