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
6788944a
Commit
6788944a
authored
Nov 01, 2018
by
Thomas Peiselt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support `type` as `item`.
parent
c693ce30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Hoogle.hs
src/IHaskell/Eval/Hoogle.hs
+7
-0
No files found.
src/IHaskell/Eval/Hoogle.hs
View file @
6788944a
...
@@ -188,6 +188,12 @@ renderSelf string loc
...
@@ -188,6 +188,12 @@ renderSelf string loc
span
"hoogle-class"
(
link
loc
$
extractNewtype
string
)
++
span
"hoogle-class"
(
link
loc
$
extractNewtype
string
)
++
packageSub
package
packageSub
package
|
"type"
`
isPrefixOf
`
string
=
let
package
=
extractPackageName
loc
in
nwt
++
" "
++
span
"hoogle-class"
(
link
loc
$
extractType
string
)
++
packageSub
package
|
otherwise
=
|
otherwise
=
let
[
name
,
args
]
=
split
"::"
string
let
[
name
,
args
]
=
split
"::"
string
package
=
extractPackageName
loc
package
=
extractPackageName
loc
...
@@ -204,6 +210,7 @@ renderSelf string loc
...
@@ -204,6 +210,7 @@ renderSelf string loc
extractClass
=
strip
.
replace
"class"
""
extractClass
=
strip
.
replace
"class"
""
extractData
=
strip
.
replace
"data"
""
extractData
=
strip
.
replace
"data"
""
extractNewtype
=
strip
.
replace
"newtype"
""
extractNewtype
=
strip
.
replace
"newtype"
""
extractType
=
strip
.
replace
"newtype"
""
pkg
=
span
"hoogle-head"
"package"
pkg
=
span
"hoogle-head"
"package"
mdl
=
span
"hoogle-head"
"module"
mdl
=
span
"hoogle-head"
"module"
cls
=
span
"hoogle-head"
"class"
cls
=
span
"hoogle-head"
"class"
...
...
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