Last active
May 21, 2018 10:42
-
-
Save quasicomputational/2440ade8dc7d12c1ee8dd3731d476d04 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let prelude = ./dhall/prelude.dhall | |
| in let types = ./dhall/types.dhall | |
| in prelude.defaults.Package | |
| ⫽ { cabal-version = | |
| prelude.v "2.0" | |
| , name = | |
| "wai-servlet" | |
| , version = | |
| prelude.v "0.1.5.0" | |
| , flags = | |
| [ { default = | |
| False | |
| , description = | |
| "print debug output. not suitable for production" | |
| , manual = | |
| False | |
| , name = | |
| "wai-servlet-debug" | |
| } | |
| ] | |
| , library = | |
| [ λ ( config | |
| : types.Config | |
| ) | |
| → if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| (prelude.orLaterVersion (prelude.v "0.0.9.7")) | |
| then if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| ( prelude.earlierVersion | |
| (prelude.v "0.7.0.2") | |
| ) | |
| then if config.impl | |
| ( prelude.types.Compilers.GHC | |
| {=} | |
| ) | |
| ( prelude.orLaterVersion | |
| (prelude.v "0.0.9") | |
| ) | |
| then if config.flag | |
| "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" | |
| ] | |
| , cpp-options = | |
| [ "-DINTEROP" | |
| , "-DPURE_JAVA_WITH" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" | |
| ] | |
| , cpp-options = | |
| [ "-DINTEROP" | |
| , "-DPURE_JAVA_WITH" | |
| ] | |
| } | |
| else if config.flag | |
| "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { cpp-options = | |
| [ "-DINTEROP" | |
| , "-DPURE_JAVA_WITH" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { cpp-options = | |
| [ "-DINTEROP" | |
| , "-DPURE_JAVA_WITH" | |
| ] | |
| } | |
| else if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| ( prelude.orLaterVersion | |
| (prelude.v "0.0.9") | |
| ) | |
| then if config.flag | |
| "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" ] | |
| , cpp-options = | |
| [ "-DINTEROP" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" ] | |
| , cpp-options = | |
| [ "-DINTEROP" ] | |
| } | |
| else if config.flag "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { cpp-options = | |
| [ "-DINTEROP" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { cpp-options = [ "-DINTEROP" ] } | |
| else if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| (prelude.earlierVersion (prelude.v "0.7.0.2")) | |
| then if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| ( prelude.orLaterVersion | |
| (prelude.v "0.0.9") | |
| ) | |
| then if config.flag | |
| "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" ] | |
| , cpp-options = | |
| [ "-DPURE_JAVA_WITH" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" ] | |
| , cpp-options = | |
| [ "-DPURE_JAVA_WITH" ] | |
| } | |
| else if config.flag "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { cpp-options = | |
| [ "-DPURE_JAVA_WITH" | |
| , "-DWAI_SERVLET_DEBUG" | |
| ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { cpp-options = [ "-DPURE_JAVA_WITH" ] } | |
| else if config.impl | |
| (prelude.types.Compilers.GHC {=}) | |
| (prelude.orLaterVersion (prelude.v "0.0.9")) | |
| then if config.flag "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { c-sources = | |
| [ "java/Utils.java" ] | |
| , cpp-options = | |
| [ "-DWAI_SERVLET_DEBUG" ] | |
| } | |
| else prelude.defaults.Library | |
| ⫽ { c-sources = [ "java/Utils.java" ] } | |
| else if config.flag "wai-servlet-debug" | |
| then prelude.defaults.Library | |
| ⫽ { cpp-options = [ "-DWAI_SERVLET_DEBUG" ] } | |
| else prelude.defaults.Library | |
| ] : Optional (types.Config → types.Library) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment