Skip to content

Instantly share code, notes, and snippets.

@ktvoelker
Last active August 29, 2015 14:25
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 ktvoelker/d561889ac4bd56cadc2d to your computer and use it in GitHub Desktop.
Save ktvoelker/d561889ac4bd56cadc2d to your computer and use it in GitHub Desktop.
name: agent
version: 0.1.0.0
synopsis: Just testing
author: Dimitri DeFigueiredo
maintainer: defigueireo@ucdavis.edu
build-type: Simple
cabal-version: >=1.20
----------------------------------------------
executable myAgent
main-is: Main.hs
build-depends: base, unix
default-language: Haskell2010
----------------------------------------------
executable myPersonalMain
main-is: Mpm.hs
build-depends: base
default-language: Haskell2010
module Main where
main = putStrLn "main"
module Mpm where
-- This import fails because the dependency on "unix" for "main" is not global,
-- and thus not made available to "myPersonalMain".
import System.Posix
main = putStrLn "Hi!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment