"<span style='color: red; font-style: italic;'>Not in scope: `ma'<br/>Perhaps you meant one of these:<br/> `map' (imported from Prelude), `max' (imported from Prelude)</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"Not in scope: `ma'\n",
"Perhaps you meant one of these:\n",
" `map' (imported from Prelude), `max' (imported from Prelude)"
]
}
],
"prompt_number": 6
"prompt_number": 6
},
},
{
{
...
@@ -168,38 +189,30 @@
...
@@ -168,38 +189,30 @@
"outputs": [
"outputs": [
{
{
"html": [
"html": [
"<span style='color: red; font-style: italic;'>No instance for (Show X)<br/> arising from a use of `print'<br/>Possible fix:<br/> add an instance declaration for (Show X)</span>"
"<span style='color: red; font-style: italic;'>No instance for (Num String)<br/> arising from the literal `3'<br/>Possible fix:<br/> add an instance declaration for (Num String)</span>"
],
],
"metadata": {},
"metadata": {},
"output_type": "display_data",
"output_type": "display_data",
"text": [
"text": [
"No instance for (GHC.Show.Show :Interactive.X)\n",
"No instance for (GHC.Num.Num GHC.Base.String)\n",
" arising from a use of `System.IO.print'\n",
" arising from the literal `3'\n",
"Possible fix:\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Show.Show :Interactive.X)"
" add an instance declaration for (GHC.Num.Num GHC.Base.String)"
]
]
}
}
],
],
"prompt_number": 9
"prompt_number": 2
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"collapsed": false,
"collapsed": false,
"input": [
"input": [
"1+1"
"data X = Y Int"
],
],
"language": "python",
"language": "python",
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [],
{
"prompt_number": 14
"metadata": {},
"output_type": "display_data",
"text": [
"2"
]
}
],
"prompt_number": 10
},
},
{
{
"cell_type": "code",
"cell_type": "code",
...
@@ -210,7 +223,7 @@
...
@@ -210,7 +223,7 @@
"language": "python",
"language": "python",
"metadata": {},
"metadata": {},
"outputs": [],
"outputs": [],
"prompt_number": 11
"prompt_number": 18
},
},
{
{
"cell_type": "code",
"cell_type": "code",
...
@@ -222,14 +235,20 @@
...
@@ -222,14 +235,20 @@
"metadata": {},
"metadata": {},
"outputs": [
"outputs": [
{
{
"html": [
"<span style='color: red; font-style: italic;'>No instance for (Num String)<br/> arising from the literal `3'<br/>Possible fix:<br/> add an instance declaration for (Num String)</span>"
],
"metadata": {},
"metadata": {},
"output_type": "display_data",
"output_type": "display_data",
"text": [
"text": [
"Y 3"
"No instance for (GHC.Num.Num GHC.Base.String)\n",
" arising from the literal `3'\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Num.Num GHC.Base.String)"
"<span style='color: red; font-style: italic;'>Couldn't match type `Text.Blaze.Internal.MarkupM ()'<br/> with `Text.Blaze.Internal.Attribute'<br/>Expected type: Text.Blaze.Internal.Attribute<br/> Actual type: Text.Blaze.Html.Html</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"Couldn't match type `Text.Blaze.Internal.MarkupM ()'\n",
" with `Text.Blaze.Internal.Attribute'\n",
"Expected type: Text.Blaze.Internal.Attribute\n",
" Actual type: Text.Blaze.Html.Html"
]
}
],
"prompt_number": 25
},
},
{
{
"cell_type": "code",
"cell_type": "code",
...
@@ -518,7 +497,7 @@
...
@@ -518,7 +497,7 @@
]
]
}
}
],
],
"prompt_number": 58
"prompt_number": 8
},
},
{
{
"cell_type": "code",
"cell_type": "code",
...
@@ -575,6 +554,128 @@
...
@@ -575,6 +554,128 @@
],
],
"prompt_number": 61
"prompt_number": 61
},
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"import Control.Concurrent\n",
"import Control.Monad\n",
"\n",
"forM_ [1..10] $ \\x -> do \n",
" print x\n",
" threadDelay 100000"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"text": [
"1\n",
"2\n",
"3\n",
"4\n",
"5\n",
"6\n",
"7\n",
"8\n",
"9\n",
"10"
]
}
],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"3"
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"text": [
"3"
]
}
],
"prompt_number": 6
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"data Thing = One Int | Two String deriving Show\n",
"One 3"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<span style='color: red; font-style: italic;'>No instance for (Show Thing)<br/> arising from a use of `print'<br/>Possible fix:<br/> add an instance declaration for (Show Thing)</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"No instance for (GHC.Show.Show :Interactive.Thing)\n",
" arising from a use of `System.IO.print'\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Show.Show :Interactive.Thing)"
]
}
],
"prompt_number": 4
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"Two \"hello\""
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data",
"text": [
"Two \"hello\""
]
}
],
"prompt_number": 5
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"One 3"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<span style='color: red; font-style: italic;'>No instance for (Show Thing)<br/> arising from a use of `print'<br/>Possible fix:<br/> add an instance declaration for (Show Thing)</span>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"No instance for (GHC.Show.Show :Interactive.Thing)\n",
" arising from a use of `System.IO.print'\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Show.Show :Interactive.Thing)"