Skip to content

Instantly share code, notes, and snippets.

@Wizek

Wizek/nix1.hs Secret

Created February 1, 2018 20:07
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/7ff8275ebc9b8fca4f4dbcf4125eb51d to your computer and use it in GitHub Desktop.
Save Wizek/7ff8275ebc9b8fca4f4dbcf4125eb51d to your computer and use it in GitHub Desktop.
#!/usr/bin/env nix-shell
#! nix-shell -p "haskell.packages.ghc822.text"
#! nix-shell -p "haskell.packages.ghc822.lens"
#! nix-shell -p "haskell.packages.ghc822.ghc"
#! nix-shell -i "runghc"
{-# language OverloadedStrings #-}
import Data.Text
import Control.Lens
import Data.Monoid
main = print $ ("foo" :: Texts, True) & _1 %~ (<> " bar")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment