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,251
    • Issues 4,251
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 394
    • Merge Requests 394
  • 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
  • #3964

Closed
Open
Opened Apr 08, 2010 by mpiechotka@trac-mpiechotka

Impossible happened when using ViewPattern in Arrows

When I try to load file in ghci impossible happened:

ghc: panic! (the 'impossible' happened)
  (GHC version 6.12.1 for x86_64-unknown-linux):
	collectl/go
    ((=={v aOp} [lid]
      u{v avw} [lid]) -> {229:56-59}{229:56-59}ghc-prim:GHC.Bool.True{(w) d 6u})

Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

Problematic function:

isOn :: ArrowChoice a => DSignal a c -> SF a b (Maybe c)                        
isOn (DSignal _ f u) = let sf = SF $! \_ -> proc (_, s, e) ->                   
                             case fromDynamic (_payload e) of                   
                                 Just (Event ((== u) -> True) v) ->             
                                     returnA -< (Just (f v), s, sf)             
                                 Nothing -> returnA -< (Nothing, s, sf)         
                       in sf

(Full sources will be attached. As it was found in-development so style may not be perfect)

Edited Mar 09, 2019 by Ian Lynagh <igloo@earth.li>
Assignee
Assign to
6.12.3
Milestone
6.12.3
Assign milestone
Time tracking
None
Due date
None
Reference: ghc/ghc#3964