Closed
Description
The basic script feature (see #3843) implemented has support for including package-description/buildinfo fields but didn't yet implement support for project metadata.
At the very least fields such as index-state
, with-compiler
, allow-{newer,older}
and constraints
shall be supported as exemplified in the example below
#! /usr/bin/env cabal
{- cabal:
index-state: 2016-09-15T12:00:00Z
with-compiler: ghc-8.0.2
allow-newer: shelly:base
constraints: filepath==1.4.1.1, containers==0.5.7.1, Cabal installed, cryptonite -none
build-depends: base ^>= 4.9
, shelly ^>= 1.6.8
-}
main :: IO ()
main = do
...
/cc @typedrat