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,249
    • Issues 5,249
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 576
    • Merge requests 576
  • 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
  • #319
Closed
Open
Issue created Mar 11, 2005 by nobody@trac-nobody

Scoping error in lambda expressions in arrow code

GHC 6.2.2 with the -farrows switch erroneously reports  
errors when lambda expressions appear in  
commands.  The error looks like the following:  
 
Command-bound variable `y' is not in scope here  
        Reason: it is used in the left argument of (-<)  
 
This will produce the error:  
foo = proc x -> arr (\y -> y-1) -< x  
 
This will not produce the error:  
bar = (\y -> y-1)  
foo = proc x -> arr bar -< x  
 
Email: vnkwjyc02@sneakemail.com 
 
Trac metadata
Trac field Value
Version 6.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Compiler
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