diff options
author | Ben Sima <ben@bsima.me> | 2022-08-04 09:48:48 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-08-04 09:48:48 -0400 |
commit | 49b4cf05fba4aff0ca8de92f274bfc5c4752f5e2 (patch) | |
tree | d5b3e07d1fe0c8794569888111cc58e32afcea84 /Alpha.hs | |
parent | f3539856541e07ec38b1eb3678f77a39b3b8c7db (diff) |
Add wutbar glyph and use it
Diffstat (limited to 'Alpha.hs')
-rw-r--r-- | Alpha.hs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -54,6 +54,7 @@ module Alpha (?:), (?.), (?+), + (?|), -- * Text str, @@ -187,6 +188,10 @@ _ ?+ [] = panic "wutlus: empty cond list" (?<) :: Bool -> (Bool -> Text -> a) -> Text -> a a ?< f = if not a then f a else panic "wutgal failed" +-- | When. wutbar +(?|) :: Applicative f => Bool -> f () -> f () +a ?| f = when a f + -- | Removes newlinse from a string. strip :: String -> String strip = filter (/= '\n') |