Skip to content

Instantly share code, notes, and snippets.

View qmmdb's full-sized avatar

Daniel Q. Bennett qmmdb

View GitHub Profile
module T where
import TestingData (hello)
main :: IO ()
main = hello "yep"
flags: {}
packages: []
extra-deps: []
resolver: lts-3.4
$ stack ghci
Run from outside a project, using implicit global config
Using resolver: lts-3.4 from global config file: /Users/dan/.stack/global/stack.yaml
Error parsing targets: The specified targets matched no packages.
Perhaps you need to run 'stack init'?
@qmmdb
qmmdb / app.hs
Last active September 4, 2015 21:01
{-# LANGUAGE OverloadedStrings #-}
import Control.Exception (SomeException)
import Control.Exception.Lifted (handle)
import Control.Monad.IO.Class (liftIO)
import Data.Aeson (Value, encode, object, (.=))
import Data.Aeson.Parser (json)
import Data.ByteString (ByteString)
import Data.Conduit (($$))
import Data.Conduit.Attoparsec (sinkParser)
import Network.HTTP.Types (status200, status400)
name: HelloSpock
version: 0.1.0.0
synopsis: Initial project template from stack
description: Please see README.md
homepage: http://github.com/githubuser/HelloSpock#readme
license: BSD3
license-file: LICENSE
author: Example Author Name
maintainer: example@example.com
copyright: 2010 Author Here