Skip to content

using #if MIN_VERSION_ leads to error #14

@epsilonhalbe

Description

@epsilonhalbe

I am including cpp-statements to get rid of the warnings introduced by Applicative moving into base

so if I put

#if !MIN_VERSION_(4,8,0)
import Control.Applicative
#endif

in some module I get the following runtime-error:

GHC returned a result but said [GhcError {errMsg = "src/Site.hs":14:0:\n error: missing binary operator before token \"(\"\n    #if MIN_VERSION_base(4,8,0)\n    ^"}]

the example you can use is a minimal snap setup as I referred to in issue #11 tmp , just add the CPP-paragraph from above in Site.hs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions