git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Improve impossible case description
d00c965Antoine R. Dumont
psci/Main.hs+1−1
@@ -376,7 +376,7 @@ handleBrowse moduleName = do
376 findType envNames m@(_, mIdent) = (mIdent, M.lookup m envNames)
376 findType envNames m@(_, mIdent) = (mIdent, M.lookup m envNames)
377 showType :: (P.Ident, Maybe (P.Type, P.NameKind, P.NameVisibility)) -> String
377 showType :: (P.Ident, Maybe (P.Type, P.NameKind, P.NameVisibility)) -> String
378 showType (mIdent, Just (mType, _, _)) = show mIdent ++ " :: " ++ P.prettyPrintType mType
378 showType (mIdent, Just (mType, _, _)) = show mIdent ++ " :: " ++ P.prettyPrintType mType
379− showType _ = undefined
379+ showType _ = error "The impossible happened in handleBrowse."
380
380
381-- |
381-- |
382-- Takes a value and prints its kind
382-- Takes a value and prints its kind