Skip to content
Snippets Groups Projects
Commit bbfb8df7 authored by Sebastian Graf's avatar Sebastian Graf
Browse files

Fix redundant pattern warning

parent 2fe6d8b7
No related branches found
No related tags found
No related merge requests found
......@@ -383,14 +383,18 @@ installHandler sig handler _maybe_mask = do
CatchOnce action -> setHandler sig (Just (const action,dyn))
CatchInfo action -> setHandler sig (Just (getinfo action,dyn))
CatchInfoOnce action -> setHandler sig (Just (getinfo action,dyn))
#if __GLASGOW_HASKELL__ <= 810
_ -> error "installHandler"
#endif
let action = case handler of
Catch _ -> STG_SIG_HAN
CatchOnce _ -> STG_SIG_RST
CatchInfo _ -> STG_SIG_HAN
CatchInfoOnce _ -> STG_SIG_RST
#if __GLASGOW_HASKELL__ <= 810
_ -> error "installHandler"
#endif
old_action <- stg_sig_install sig action nullPtr
-- mask is pointless, so leave it NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment