summaryrefslogtreecommitdiff
path: root/Alpha.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2023-08-02 10:38:22 -0400
committerBen Sima <ben@bsima.me>2023-08-02 10:42:54 -0400
commitb154d6b3be99a4a9f5907c84645ca569183bb40e (patch)
treee23c313e1e83495a36159647a20c4c2ec4976707 /Alpha.hs
parent4cb9f2fbfbb124b38f19c72059620f25b71f92b7 (diff)
Factor out nix builder into Haskell.nix
This also fixed a bug where every dependency would get pulled into the Haskell target while searching for transitive dependencies.
Diffstat (limited to 'Alpha.hs')
-rw-r--r--Alpha.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alpha.hs b/Alpha.hs
index 6cc9b18..e53474b 100644
--- a/Alpha.hs
+++ b/Alpha.hs
@@ -245,6 +245,8 @@ wrap lim = Text.words .> wrap_ 0 .> Text.unwords
where
lw = Text.length w
+-- | Automatically convert any string-like type into any other string-like type,
+-- using types to infer the appropriate conversion.
str :: (StringConv a b) => a -> b
str = Protolude.Conv.toS