Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
GHC
GHC
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 4,273
    • Issues 4,273
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 413
    • Merge Requests 413
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Glasgow Haskell Compiler
  • GHCGHC
  • Issues
  • #911

Closed
Open
Opened Sep 27, 2006 by Simon Marlow@simonmarDeveloper

Better information about the location of exceptions

From Frederik Eaton, on glasgow-haskell-bugs:

I think it would be a good idea to print instructions for getting more information when a program fails with a pattern match or other error.

Rather than

foo: Prelude.undefined

it should say

foo: Prelude.undefined
For information about the location of this error, recompile with "-prof -auto-all" and run with "+RTS -xc -RTS"

Also, maybe these instructions aren't enough? When I do the above, it just prints

<GHC.Err.CAF><GHC.Err.CAF><GHC.Err.CAF><GHC.Err.CAF>foo: Prelude.undefined

which isn't what I was looking for... Am I forgetting an option or something?

Trac metadata
Trac field Value
Version 6.4.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC frederik@a5.repetae.net
Operating system Unknown
Architecture Unknown
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#911