Parse error when building module on FreeBSD

Open
#60 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
haskell

Research direction

Reproduce the build on FreeBSD 11.1 using stack, then inspect src/Data/Thyme/Calendar/MonthDay.hs at line 17 and the surrounding source. Compare the reported parse error with the project’s build configuration and confirm the fix by rebuilding thyme successfully.

Written by the indexing model from the issue text.

Description

When building thyme on FreeBSD using stack, I get the following error:

Configuring thyme-0.3.5.5...
Building thyme-0.3.5.5...
Preprocessing library thyme-0.3.5.5...
[ 1 of 20] Compiling Data.Thyme.Format.Internal ( src/Data/Thyme/Format/Internal.hs, .stack-work/dist/x86_64-freebsd/Cabal-1.24.2.0/build/Data/Thyme/Format/Internal.o )
[ 2 of 20] Compiling Data.Thyme.Internal.Micro ( src/Data/Thyme/Internal/Micro.hs, .stack-work/dist/x86_64-freebsd/Cabal-1.24.2.0/build/Data/Thyme/Internal/Micro.o )
[ 3 of 20] Compiling Control.Lens     ( lens/Control/Lens.hs, .stack-work/dist/x86_64-freebsd/Cabal-1.24.2.0/build/Control/Lens.o )
[ 4 of 20] Compiling Data.Thyme.Calendar.Internal ( src/Data/Thyme/Calendar/Internal.hs, .stack-work/dist/x86_64-freebsd/Cabal-1.24.2.0/build/Data/Thyme/Calendar/Internal.o )

src/Data/Thyme/Calendar/Internal.hs:21:1: warning: [-Wunused-imports]
    The import of `Control.Applicative' is redundant
      except perhaps to import instances from `Control.Applicative'
    To import instances alone, use: import Control.Applicative()
[ 5 of 20] Compiling Data.Thyme.Calendar.MonthDay ( src/Data/Thyme/Calendar/MonthDay.hs, .stack-work/dist/x86_64-freebsd/Cabal-1.24.2.0/build/Data/Thyme/Calendar/MonthDay.o )

src/Data/Thyme/Calendar/MonthDay.hs:17:12: error:
    parse error on input `_'

Platform details:

FreeBSD 11.1-RELEASE amd64 GENERIC
Dominant language
Haskell
Stars
47
Forks
35
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haskell-github-trust/thyme

All issues in haskell-github-trust/thyme

Similar issues

More Haskell issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.