Skip to content

Commit c63f58c

Browse files
committed
remove overlapping pattern catch-all
1 parent 381b0e5 commit c63f58c

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/Nix/Pretty.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,6 @@ valueToExpr = iterNValue (\_ _ -> thk) phi
320320
phi (NVClosure' _ _ ) = Fix . NSym $ "<closure>"
321321
phi (NVPath' p ) = Fix $ NLiteralPath p
322322
phi (NVBuiltin' name _) = Fix . NSym $ "builtins." <> pack name
323-
phi _ = error "Pattern synonyms foil completeness check"
324323

325324
mkStr ns = Fix $ NStr $ DoubleQuoted [Plain (stringIgnoreContext ns)]
326325

@@ -396,4 +395,3 @@ printNix = iterNValue (\_ _ -> thk) phi
396395
phi NVClosure'{} = "<<lambda>>"
397396
phi (NVPath' fp ) = fp
398397
phi (NVBuiltin' name _) = "<<builtin " <> name <> ">>"
399-
phi _ = error "Pattern synonyms foil completeness check"

src/Nix/XML.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ toXML = runWithStringContext . fmap pp . iterNValue (\_ _ -> cyc) phi
6161
pure $ Element (unqual "function") mempty (paramsXML p) Nothing
6262
NVPath' fp -> pure $ mkElem "path" "value" fp
6363
NVBuiltin' name _ -> pure $ mkElem "function" "name" name
64-
_ -> error "Pattern synonyms mask coverage"
6564

6665
mkElem :: String -> String -> String -> Element
6766
mkElem n a v = Element (unqual n) [Attr (unqual a) v] mempty Nothing

0 commit comments

Comments
 (0)