summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2018-08-08 19:10:37 -0700
committerBen Sima <ben@bsima.me>2018-08-08 19:10:37 -0700
commitc063d8f776dc21a300f1caf87377e3b86f652a3d (patch)
tree11eacb47bf3121236b17fc8bc766f588186e379f
parent65ffe186acb5f32f0bba07b8ce0eecacbda83bbd (diff)
switch this script to nix
-rwxr-xr-xrain.bh.hs12
1 files changed, 4 insertions, 8 deletions
diff --git a/rain.bh.hs b/rain.bh.hs
index 0133c2b..f7267f8 100755
--- a/rain.bh.hs
+++ b/rain.bh.hs
@@ -1,11 +1,7 @@
-#!/usr/bin/env stack
-{- stack
- --nix
- --resolver lts-11.15
- --install-ghc
- runghc
- --package random
--}
+#! /usr/bin/env nix-shell
+#! nix-shell -p "haskellPackages.ghcWithPackages (pkgs: [pkgs.random])" -i runghc
+
+{-# OPTIONS_GHC -Wall #-}
{-# LANGUAGE TypeSynonymInstances #-}
{-# LANGUAGE FlexibleInstances #-}