Skip to content

GitLab

  • Menu
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 4,870
    • Issues 4,870
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 453
    • Merge requests 453
  • 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 Compiler
  • GHCGHC
  • Issues
  • #21507
Closed
Open
Created May 05, 2022 by MorrowM@MorrowMContributor

Recognize LANGUAGE and OPTIONS_GHC pragmas in GHCi

Motivation

Continuing #20473 (closed) in which support for mixing imports and declarations in GHCi was added, I'd like to propose recognizing LANGUAGE and OPTIONS_GHC pragmas in GHCi as well, so that users pasting a code snippet won't have to enable language extensions and options manually.

Proposal

When a line is run in GHCi, if it contains any LANGUAGE and/or OPTIONS_GHC pragmas, set those options. I already have a working prototype at MorrowM/ghc@b659c189

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking