Did a fresh install of Haskell following instructions from https://www.haskell.org/ghcup/.
Used cabal to install package regex-tdfa-1.3.1.1
PS C:\Users\collumww\Documents\scr0> cabal install regex-tdfa --lib
Resolving dependencies...
Up to date
PS C:\Users\collumww\Documents\scr0>
Verified package is intact:
PS C:\Users\collumww\Documents\scr0> ghc-pkg --package-db=C:\cabal\store\ghc-8.10.2\package.db list
C:\cabal\store\ghc-8.10.2\package.db
regex-base-0.94.0.2
regex-compat-0.95.2.1
regex-posix-0.96.0.1
regex-posix-clib-2.7
regex-tdfa-1.3.1.1
PS C:\Users\collumww\Documents\scr0>
I clearly see that it's in a different package database.
Now, I want to do
import Text.Regex.TDFA
ghci can't find it:
PS C:\Users\collumww\Documents\scr0> ghci
GHCi, version 8.10.2: https://www.haskell.org/ghc/ :? for help
Prelude> import Text.Regex.TDFA
<no location info>: error:
Could not find module `Text.Regex.TDFA'
It is not a module in the current program, or in any known package.
Prelude>
I know I'm missing something simple, and have looked all over and found numerous things about packages but the only ones that mention ghc (or ghci) not being able to find one propose the cabal command I show as the solution.