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
3f30d5a1
Commit
3f30d5a1
authored
May 18, 2014
by
Andrew Gibiansky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned a little bit of docs
parent
b61fcf86
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
7 deletions
+31
-7
BrokenPackages.hs
src/IHaskell/BrokenPackages.hs
+3
-0
Display.hs
src/IHaskell/Display.hs
+27
-6
Completion.hs
src/IHaskell/Eval/Completion.hs
+1
-1
No files found.
src/IHaskell/BrokenPackages.hs
View file @
3f30d5a1
...
...
@@ -19,6 +19,9 @@ data BrokenPackage = BrokenPackage {
instance
Show
BrokenPackage
where
show
=
packageID
-- | Get a list of broken packages.
-- This function internally shells out to `ghc-pkg`, and parses the output
-- in order to determine what packages are broken.
getBrokenPackages
::
IO
[
String
]
getBrokenPackages
=
shelly
$
do
silently
$
errExit
False
$
run
"ghc-pkg"
[
"check"
]
...
...
src/IHaskell/Display.hs
View file @
3f30d5a1
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, FlexibleInstances #-}
-- | If you are interested in the IHaskell library for the purpose of
-- augmenting the IHaskell notebook or writing your own display mechanisms
-- and widgets, this module contains all functions you need.
--
-- In order to create a display mechanism for a particular data type, write
-- a module named (for example) @IHaskell.Display.YourThing@ in a package named @ihaskell-yourThing@.
-- (Note the capitalization - it's important!) Then, in that module, add an
-- instance of @IHaskellDisplay@ for your data type. Similarly, to create
-- a widget, add an instance of @IHaskellWidget@.
--
-- An example of creating a display is provided in the <http://gibiansky.github.io/IHaskell/demo.html demo notebook>.
--
module
IHaskell.Display
(
-- * Rich display and interactive display typeclasses and types
IHaskellDisplay
(
..
),
Display
(
..
),
DisplayData
(
..
),
IHaskellWidget
(
..
),
-- ** Interactive use functions
printDisplay
,
-- * Constructors for displays
plain
,
html
,
png
,
jpg
,
svg
,
latex
,
javascript
,
many
,
serializeDisplay
,
-- ** Image and data encoding functions
Width
,
Height
,
Base64
(
..
),
encode64
,
base64
,
Display
(
..
),
DisplayData
(
..
),
printDisplay
,
-- ** Utilities
switchToTmpDir
,
-- Internal only use
--
*
Internal only use
displayFromChan
,
serializeDisplay
,
Widget
(
..
),
)
where
...
...
@@ -26,7 +48,6 @@ import Data.Aeson (Value)
import
System.Directory
(
getTemporaryDirectory
,
setCurrentDirectory
)
import
Control.Concurrent.STM.TChan
import
System.IO.Unsafe
(
unsafePerformIO
)
...
...
src/IHaskell/Eval/Completion.hs
View file @
3f30d5a1
{-# LANGUAGE NoImplicitPrelude, OverloadedStrings, DoAndIfThenElse #-}
{- |
Description
:
Generates tab completion options.
Description
:
Generates tab completion options.
This has a limited amount of context sensitivity. It distinguishes between four contexts at the moment:
- import statements (completed using modules)
...
...
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