Skip to content

Commit

Permalink
Die when root type is not specified
Browse files Browse the repository at this point in the history
  • Loading branch information
adept committed Aug 22, 2009
1 parent 3f460cf commit 6f84713
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GraphType.hs
Expand Up @@ -111,7 +111,9 @@ addDecl declName clusters decls = do
return ( danglingLinks, clusters' )
where
-- Find declaration by name
Just d = findDecl declName decls
d = case findDecl declName decls of
Just x -> x
Nothing -> error $ "Could not find type " ++ declName ++ " in source files"

-- Type, newtype or data
declType = getDeclType d
Expand Down

0 comments on commit 6f84713

Please sign in to comment.