Commit 34187136 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

Don't require base for implicitly generated signatures.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 7ae415d6
......@@ -646,7 +646,8 @@ writeAutogenFiles verbosity pkg lbi clbi = do
let sigPath = autogenComponentModulesDir lbi clbi
</> ModuleName.toFilePath mod_name <.> "hsig"
createDirectoryIfMissingVerbose verbosity True (takeDirectory sigPath)
rewriteFile sigPath $ "signature " ++ display mod_name ++ " where"
rewriteFile sigPath $ "{-# LANGUAGE NoImplicitPrelude #-}\n" ++
"signature " ++ display mod_name ++ " where"
_ -> return ()
let cppHeaderPath = autogenComponentModulesDir lbi clbi </> cppHeaderName
......
name: Indef2
version: 0.1.0.0
license: BSD3
author: Edward Z. Yang
maintainer: ezyang@cs.stanford.edu
build-type: Simple
cabal-version: >=1.25
library asig1
signatures: A
build-depends: base
library
build-depends: asig1
default-language: Haskell2010
import Test.Cabal.Prelude
main = setupAndCabalTest $ do
skipUnless =<< ghcVersionIs (>= mkVersion [8,1])
setup "configure" []
setup "build" []
return ()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment