Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
121be952
Commit
121be952
authored
Oct 22, 2014
by
Edward Tjörnhammar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
catMaybes, explicitly use ClassyPrelude
parent
192368d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Completion.hs
src/IHaskell/Eval/Completion.hs
+2
-2
No files found.
src/IHaskell/Eval/Completion.hs
View file @
121be952
...
@@ -141,7 +141,7 @@ getTrueModuleName name = do
...
@@ -141,7 +141,7 @@ getTrueModuleName name = do
onlyImportDecl
_
=
Nothing
onlyImportDecl
_
=
Nothing
-- Get all imports that we use.
-- Get all imports that we use.
imports
<-
catMaybes
<$>
map
onlyImportDecl
<$>
getContext
imports
<-
ClassyPrelude
.
catMaybes
<$>
map
onlyImportDecl
<$>
getContext
-- Find the ones that have a qualified name attached.
-- Find the ones that have a qualified name attached.
-- If this name isn't one of them, it already is the true name.
-- If this name isn't one of them, it already is the true name.
...
@@ -178,7 +178,7 @@ completionType line loc target
...
@@ -178,7 +178,7 @@ completionType line loc target
=
Empty
=
Empty
-- When in a string, complete filenames.
-- When in a string, complete filenames.
|
cursorInString
line
loc
|
cursorInString
line
loc
=
FilePath
(
getStringTarget
lineUpToCursor
)
(
getStringTarget
lineUpToCursor
)
=
FilePath
(
getStringTarget
lineUpToCursor
)
(
getStringTarget
lineUpToCursor
)
-- Complete module names in imports and elsewhere.
-- Complete module names in imports and elsewhere.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment