Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • GHC GHC
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 5,247
    • Issues 5,247
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 565
    • Merge requests 565
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Glasgow Haskell CompilerGlasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #501
Closed
Open
Issue created Oct 12, 2000 by Manuel M T Chakravarty@mchakravartyReporter

-fglasgow-exts for -syslib lang

Toying around with the module IArray from -syslib lang, Gabi and I found that we need to give ghc -fglasgow-exts, because IArray is a multi-parameter type class.

This is a problem, because a user less familar with ghc, will probably not be able to infer from some strange error message whose position is in ArrayBase.hi what the problem is.  This suggests that the driver should automatically add -fglasgow-exts when -syslib lang is specified.

The problem with this strategy is, however, that also when somebody imports components of -syslib lang that do not need extensions, the flag will be used.  So, maybe we should split lang into lang-h98 and lang-exts or so.

At the very least, the documentation for IArray should mention this caveat.
Trac metadata
Trac field Value
Version None
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component hslibs/lang
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking