Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 0a242f4a34
Fetching contributors…

Cannot retrieve contributors at this time

file 20 lines (15 sloc) 0.597 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/usr/bin/env runhaskell

import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.Simple.Setup
import System.Directory

import AutoAST

main :: IO ()
main = defaultMainWithHooks simpleUserHooks { postConf = generate, postClean = clean }

generate :: Args -> ConfigFlags -> PackageDescription -> LocalBuildInfo -> IO ()
generate _ _ _ _ = do
  writeFile "Language/SMTLIB/Version12.hs" version12

clean :: Args -> CleanFlags -> PackageDescription -> () -> IO ()
clean _ _ _ () = do
  removeFile "Language/SMTLIB/Version12.hs"
Something went wrong with that request. Please try again.