Skip to content

Instantly share code, notes, and snippets.

@cocreature
Last active September 6, 2017 18:48
Show Gist options
  • Save cocreature/d07ef6f35f7bd9043db50794fe31e977 to your computer and use it in GitHub Desktop.
Save cocreature/d07ef6f35f7bd9043db50794fe31e977 to your computer and use it in GitHub Desktop.
cabal new-build does not track files added via addDependentFile
.cabal-sandbox/
cabal.sandbox.config
dist/
dist-newstyle/
*~
{-# LANGUAGE TemplateHaskell #-}
module Main where
import qualified Data.ByteString.Char8 as ByteString
import Data.FileEmbed
main :: IO ()
main = ByteString.putStrLn $(embedFile "fileinput")
import Distribution.Simple
main = defaultMain
-- Initial test-project.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: test-project
version: 0.1.0.0
-- synopsis:
-- description:
license: BSD3
author: Moritz Kiefer
maintainer: [email protected]
-- copyright:
-- category:
build-type: Simple
extra-source-files: fileinput
cabal-version: >=1.10
executable test-project
main-is: Main.hs
-- other-modules:
-- other-extensions:
build-depends: base >=4.9 && <4.10
, bytestring
, file-embed
-- hs-source-dirs:
default-language: Haskell2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment