summaryrefslogtreecommitdiff
path: root/Alpha.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-02-19 10:42:02 -0500
committerBen Sima <ben@bsima.me>2021-02-19 10:42:02 -0500
commit30fb0e0dc8972dcde0c4e765c5ab7864f69841a4 (patch)
treedead1cea450e09122dd59f99d051552f1d580237 /Alpha.hs
parent64c5858f7bc01fa9c0e0bc5726066ce6167bea81 (diff)
Formatting, and add a warning to 'require'
Diffstat (limited to 'Alpha.hs')
-rw-r--r--Alpha.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alpha.hs b/Alpha.hs
index 8fdca51..9feb123 100644
--- a/Alpha.hs
+++ b/Alpha.hs
@@ -213,6 +213,7 @@ capitalize str = (Char.toUpper <| List.head str) : (Char.toLower </ List.tail st
lowercase :: String -> String
lowercase str = [Char.toLower c | c <- str]
+{-# WARNING require "'require' remains in code" #-}
require :: Text -> Maybe a -> a
require _ (Just x) = x
require s Nothing = panic <| s <> " not found"