Commit 7de78dc5 authored by Andrew Gibiansky's avatar Andrew Gibiansky

Merge pull request #492 from sumitsahrawat/chunked-data

Add dependency on chunked-data explicitly
parents 73469b7c 0034f84d
......@@ -61,6 +61,7 @@ library
bytestring >=0.10,
cereal >=0.3,
classy-prelude >=0.9.5 && <0.11,
chunked-data ==0.1.*,
mono-traversable >=0.6,
cmdargs >=0.10,
containers >=0.5,
......@@ -136,6 +137,7 @@ executable ihaskell
bytestring >=0.10,
cereal >=0.3,
classy-prelude >=0.9.2 && <0.11,
chunked-data ==0.1.*,
mono-traversable >=0.6,
containers >=0.5,
directory -any,
......@@ -162,6 +164,7 @@ Test-Suite hspec
bytestring >=0.10,
cereal >=0.3,
classy-prelude >=0.9.2 && <0.11,
chunked-data ==0.1.*,
mono-traversable >=0.6,
cmdargs >=0.10,
containers >=0.5,
......
......@@ -37,14 +37,13 @@ getIdentifier code pos = identifier
then "(" ++ lastChunk ++ ")"
else lastChunk
inspect :: String -- ^ Code in the cell
-> Int -- ^ Cursor position in the cell
-> Interpreter (Maybe Display)
inspect code pos = do
let identifier = getIdentifier code pos
handler :: SomeException -> Interpreter (Maybe a)
handler _ = return Nothing
handler _ = return Nothing
response <- ghandle handler (Just <$> getType identifier)
let prefix = identifier ++ " :: "
fmt str = Display [plain $ prefix ++ str]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment