i have no idea how to configure haskell script dependency from deps.nix.
[op@my-200 hs-etl]$ cat deps.nix
with import <nixos-19.09> {} ;
haskellPackages.ghcWithPackages (p: [p.lens])
[op@my-200 hs-etl]$ cat dataset_lineage.hs
#! /usr/bin/env nix-shell
#! nix-shell deps.nix -i runghc
import Control.Lens
main = do
putStrLn $ ("hello","world")^._2
the related log is:
[op@my-200 hs-etl]$ ./dataset_lineage.hs
dataset_lineage.hs:4:1: error:
Could not find module `Control.Lens'
Use -v to see a list of the files searched for.
|
4 | import Control.Lens