Use protolude 0.2.2, replace undefined with witness

protolude provides headMay since 0.2.2, it can be used instead of safe.
This commit is contained in:
Felix Yan
2018-05-28 13:08:27 -05:00
committed by Steve Chávez
parent 384767708b
commit 9ea7529f30
6 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ getJoinConditions (Relation Table{tableSchema=tSchema, tableName=tN} cols Table{
| typ == Many ->
let ltN = fromMaybe "" (tableName <$> lt) in
zipWith (toJoinCondition tN ltN) cols (fromMaybe [] lc1) ++ zipWith (toJoinCondition ftN ltN) fcs (fromMaybe [] lc2)
| typ == Root -> undefined
| typ == Root -> witness
where
toJoinCondition :: Text -> Text -> Column -> Column -> JoinCondition
toJoinCondition tb ftb c fc =