Skip to content

Commit 52885bd

Browse files
committed
Fix bug with show directive not being correctly completed
1 parent aa6d19a commit 52885bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

psci/Directive.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
module Directive where
1717

18-
import Data.List (isPrefixOf)
18+
import Data.List (nub, isPrefixOf)
1919

2020
data Directive
2121
= Help
@@ -27,6 +27,7 @@ data Directive
2727
| Type
2828
| Kind
2929
| Show
30+
deriving Eq
3031

3132
-- |
3233
-- Maps given directive relating command strings.
@@ -78,4 +79,4 @@ help =
7879
-- List of all avaliable directives.
7980
--
8081
directives :: [Directive]
81-
directives = map (\(dir, _, _) -> dir) help
82+
directives = nub . map (\(dir, _, _) -> dir) $ help

0 commit comments

Comments
 (0)