diff options
author | Profpatsch <mail@profpatsch.de> | 2019-09-09 01:42:29 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2019-09-09 02:01:23 +0200 |
commit | 654e7f931201a7fe435624aa4412bb1fcc4fedb7 (patch) | |
tree | 050aa5e369adef540ff5d4ecb056ed2dd44b0560 /pkgs/profpatsch/dhallsh/Command/toList.dhall | |
parent | 07df02fb273e6263a0ac0cec96bb7e5c3b379032 (diff) |
First working fish subcommand completion.
Diffstat (limited to 'pkgs/profpatsch/dhallsh/Command/toList.dhall')
-rw-r--r-- | pkgs/profpatsch/dhallsh/Command/toList.dhall | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/profpatsch/dhallsh/Command/toList.dhall b/pkgs/profpatsch/dhallsh/Command/toList.dhall new file mode 100644 index 00000000..23605a3f --- /dev/null +++ b/pkgs/profpatsch/dhallsh/Command/toList.dhall @@ -0,0 +1,12 @@ +let Prelude = ../imports/Prelude.dhall + +let Command = ./type.dhall + +let toList + : ∀(a : Type) → (a → List Text) → Command a → List Text + = λ(a : Type) + → λ(f : a → List Text) + → λ(c : Command a) + → [ c.cmd ] # Prelude.List.concatMap a Text f c.args + +in toList |