Skip to content

Instantly share code, notes, and snippets.

@Wizek

Wizek/nix1.hs Secret

Created February 1, 2018 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wizek/2b096b5835727ade62aa8fc33a344076 to your computer and use it in GitHub Desktop.
Save Wizek/2b096b5835727ade62aa8fc33a344076 to your computer and use it in GitHub Desktop.
#!/usr/bin/env nix-shell
#! nix-shell -p "haskell.packages.ghc822.ghcWithPackages (p: [p.text])"
#! nix-shell -p "haskell.packages.ghc822.ghcWithPackages (p: [p.lens])"
#! nix-shell -i "runghc"
{-# language OverloadedStrings #-}
import Data.Text
import Control.Lens
import Data.Monoid
main = print $ ("foo" :: Text, True) & _1 %~ (<> " bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment