haskell / haskell/cabal

Paths modules should not import Prelude

Open
#9,408 0 comments 0 reactions 0 assignees View on GitHub
needs triage type: bug
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the bug**

mixins interact weirdly with Paths in that if I change the Prelude to be something else, the Paths module fails to compile. I think the autogenerated modules should not ever be influenced by something like mixins.

**To Reproduce**

- add a Prelude mixin that overrides a function used in a Paths module

**Expected behavior**

id expect Paths modules to compile the exact same, no matter the environment.

**System information**

n/a

**Additional context**

#8689 might be relevant

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with a Prelude mixin that overrides a function used by an autogenerated Paths module, then read the related discussion in #8689. Done means the Paths module compiles identically regardless of the Prelude or mixin environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.