Verites/verigraph

View on GitHub
src/library/Data/Graphs.hs

Summary

Maintainability
Test Coverage

Replace case with fromMaybe
Open

    getNode id = case lookup id nodes of
      Nothing -> error $ "edgeInContext: malformed graph, lookup of edge " ++ show id ++ " failed"
      Just n  -> n
Severity: Minor
Found in src/library/Data/Graphs.hs by hlint

Found

case lookup id nodes of
    Nothing -> error $
                 "edgeInContext: malformed graph, lookup of edge " ++
                   show id ++ " failed"
    Just n -> n

Perhaps

fromMaybe
  (error $
     "edgeInContext: malformed graph, lookup of edge " ++
       show id ++ " failed")
  (lookup id nodes)

There are no issues that match your filters.

Category
Status