I found the turtle package and would like to go through the tutorial but I’m struggling a little.
default.nix:
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "name";
buildInputs = [
stack
zlib
];
src = null;
}
hello.hs:
#!/usr/bin/env stack
-- stack --resolver lts-17.9 script
-- #!/bin/bash
{-# LANGUAGE OverloadedStrings #-} --
--
import Turtle --
--
main = echo "Hello, world!" -- echo Hello, world!
.envrc in case it should matter:
use_nix
unset PS1
Here’s what I’m getting:
~/devp/test-turtle ⌚ 15:01:37
$ ./hello.hs
Module Turtle appears in multiple packages:
turtle turtle
And this confuses me. Does anyone here have pointers that could help me?