From c063d8f776dc21a300f1caf87377e3b86f652a3d Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 8 Aug 2018 19:10:37 -0700 Subject: switch this script to nix --- rain.bh.hs | 12 ++++-------- 1 file 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 #-} -- cgit v1.2.3