diff options
author | Ben Sima <ben@bsima.me> | 2021-02-19 10:42:02 -0500 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2021-02-19 10:42:02 -0500 |
commit | 30fb0e0dc8972dcde0c4e765c5ab7864f69841a4 (patch) | |
tree | dead1cea450e09122dd59f99d051552f1d580237 /Alpha.hs | |
parent | 64c5858f7bc01fa9c0e0bc5726066ce6167bea81 (diff) |
Formatting, and add a warning to 'require'
Diffstat (limited to 'Alpha.hs')
-rw-r--r-- | Alpha.hs | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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" |