"<span style='color: red; font-style: italic;'>Failed to load interface for `Lkjadflkjad'<br/></span>"
"<span style='color: red; font-style: italic;'>Failed to load interface for `Lkjadflkjad'</span>"
],
"metadata": {},
"output_type": "display_data"
"output_type": "display_data",
"text": [
"Failed to load interface for `Lkjadflkjad'\n",
"Use -v to see a list of the files searched for."
]
}
],
"prompt_number": 4
...
...
@@ -129,10 +127,14 @@
"outputs": [
{
"html": [
"<span style='color: red; font-style: italic;'>Not in scope: `abc'<br/>Perhaps you meant `abs' (imported from Prelude)<br/></span>"
"<span style='color: red; font-style: italic;'>Not in scope: `abc'<br/>Perhaps you meant `abs' (imported from Prelude)</span>"
],
"metadata": {},
"output_type": "display_data"
"output_type": "display_data",
"text": [
"Not in scope: `abc'\n",
"Perhaps you meant `abs' (imported from Prelude)"
]
}
],
"prompt_number": 5
...
...
@@ -146,16 +148,7 @@
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"prompt_number": 6
},
{
...
...
@@ -167,16 +160,7 @@
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"prompt_number": 7
},
{
...
...
@@ -192,12 +176,8 @@
"metadata": {},
"output_type": "display_data",
"text": [
"3\n"
"3"
]
},
{
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 8
...
...
@@ -206,17 +186,25 @@
"cell_type": "code",
"collapsed": false,
"input": [
"it11"
"data X = Y Int\n",
"return (Y 3)\n",
"Y 3"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<span style='color: red; font-style: italic;'>Not in scope: `it11'<br/>Perhaps you meant `it1' (line 1)<br/></span>"
"<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>"
],
"metadata": {},
"output_type": "display_data"
"output_type": "display_data",
"text": [
"No instance for (GHC.Show.Show :Interactive.X)\n",
" arising from a use of `System.IO.print'\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Show.Show :Interactive.X)"
]
}
],
"prompt_number": 9
...
...
@@ -234,12 +222,8 @@
"metadata": {},
"output_type": "display_data",
"text": [
"2\n"
"2"
]
},
{
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 10
...
...
@@ -252,16 +236,7 @@
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"prompt_number": 11
},
{
...
...
@@ -277,12 +252,8 @@
"metadata": {},
"output_type": "display_data",
"text": [
"Y 3\n"
"Y 3"
]
},
{
"metadata": {},
"output_type": "display_data"
}
],
"prompt_number": 12
...
...
@@ -295,16 +266,7 @@
],
"language": "python",
"metadata": {},
"outputs": [
{
"metadata": {},
"output_type": "display_data"
},
{
"metadata": {},
"output_type": "display_data"
}
],
"outputs": [],
"prompt_number": 13
},
{
...
...
@@ -318,10 +280,13 @@
"outputs": [
{
"html": [
"<span style='color: red; font-style: italic;'><interactive>:1:1-12: Non-exhaustive patterns in function test<br/></span>"
"<span style='color: red; font-style: italic;'><interactive>:1:1-12: Non-exhaustive patterns in function test</span>"
],
"metadata": {},
"output_type": "display_data"
"output_type": "display_data",
"text": [
"<interactive>:1:1-12: Non-exhaustive patterns in function test"
"<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"
},
{
"metadata": {},
"output_type": "display_data"
},
"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",
"collapsed": false,
"input": [
"import Prelude hiding (head, id, div)\n",
"import Text.Blaze.Html4.Strict hiding (map)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 34
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"data X = Y Int\n",
"Y 3"
],
"language": "python",
"metadata": {},
"outputs": [
{
"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>"
],
"metadata": {},
"output_type": "display_data",
"text": [
"3\n"
"No instance for (GHC.Show.Show :Interactive.X)\n",
" arising from a use of `System.IO.print'\n",
"Possible fix:\n",
" add an instance declaration for (GHC.Show.Show :Interactive.X)"
]
},
}
],
"prompt_number": 58
},
{
"cell_type": "code",
"collapsed": false,
"input": [
"forM [1] $ \\x -> return (Y x)"
],
"language": "python",
"metadata": {},
"outputs": [],
"prompt_number": 59
},
{
"cell_type": "code",
"collapsed": false,
"input": [
":t forM [1] $ \\x -> return (Y x)"
],
"language": "python",
"metadata": {},
"outputs": [
{
"html": [
"<span style='font-weight: bold; color: green;'>forall (m :: * -> *). Monad m => m [X]</span>"