Ticket #3964 (closed bug: fixed)
Impossible happened when using ViewPattern in Arrows
| Reported by: | uzytkownik | Owned by: | simonpj |
|---|---|---|---|
| Priority: | high | Milestone: | 6.12.3 |
| Component: | Compiler | Version: | 6.12.1 |
| Keywords: | Cc: | uzytkownik2@… | |
| Operating System: | Linux | Architecture: | x86_64 (amd64) |
| Type of failure: | Compile-time crash | Difficulty: | |
| Test Case: | arrows/should_compile/T3964 | Blocked By: | |
| Blocking: | Related Tickets: |
Description (last modified by igloo) (diff)
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)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

