Skip to content

Instantly share code, notes, and snippets.

@vvv
vvv / applicative-something.hs
Created March 28, 2018 18:37
Looking for idiomatic way to write expression with `Applicative`
#!/usr/bin/env stack
-- stack --resolver lts-11.2 script
{-# OPTIONS_GHC -Wall -W -Werror #-}
data Foo = Foo
{ fooInt :: Int
, fooBar :: Bar
} deriving Show
data Bar = Bar Baz
#!/usr/bin/env stack
-- stack --resolver lts-9.21 script --package loch-th
{-# LANGUAGE TemplateHaskell #-}
{-# OPTIONS_GHC -Wall -Werror #-}
import Debug.Trace.LocationTH (check)
import System.Environment (getArgs)
main :: IO ()
main = do
#!/usr/bin/env stack
{- stack --resolver lts-9.21 script
--package shelly --package text
-}
{-# OPTIONS_GHC -Wall -Werror #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE ExtendedDefaultRules #-}
{-# OPTIONS_GHC -fno-warn-type-defaults #-}
import Shelly

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages