summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testsuite/tests/ghci/scripts/T16415.script2
-rw-r--r--testsuite/tests/ghci/scripts/T16415.stdout8
-rwxr-xr-xtestsuite/tests/ghci/scripts/all.T1
3 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/ghci/scripts/T16415.script b/testsuite/tests/ghci/scripts/T16415.script
new file mode 100644
index 0000000000..c1e9b2fd58
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T16415.script
@@ -0,0 +1,2 @@
+:doc id
+:doc Control.Monad.State.State
diff --git a/testsuite/tests/ghci/scripts/T16415.stdout b/testsuite/tests/ghci/scripts/T16415.stdout
new file mode 100644
index 0000000000..4dd8c51449
--- /dev/null
+++ b/testsuite/tests/ghci/scripts/T16415.stdout
@@ -0,0 +1,8 @@
+ Identity function.
+
+ > id x = x
+ A state monad parameterized by the type @s@ of the state to carry.
+
+ The 'return' function leaves the state unchanged, while @>>=@ uses
+ the final state of the first computation as the initial state of
+ the second.
diff --git a/testsuite/tests/ghci/scripts/all.T b/testsuite/tests/ghci/scripts/all.T
index 0f6ed54ddb..f919411125 100755
--- a/testsuite/tests/ghci/scripts/all.T
+++ b/testsuite/tests/ghci/scripts/all.T
@@ -364,3 +364,4 @@ test('T20909', normal, ghci_script, ['T20909.script'])
test('T20150', normal, ghci_script, ['T20150.script'])
test('T20974', normal, ghci_script, ['T20974.script'])
test('T21088', normal, ghci_script, ['T21088.script'])
+test('T16415', [req_haddock], ghci_script, ['T16415.script'])