elif.cabal:19:3: invalid subsection "else" elif.cabal:17:3: invalid subsection "elif". You should set cabal-version: 2.2 or larger to use elif-conditionals. cabal-version: >=1.10 name: elif version: 0 synopsis: The elif demo build-type: Simple source-repository head type: git location: https://github.com/hvr/-.git library exposed-modules: ElseIf default-language: Haskell2010 if os(linux) build-depends: unix -any