diff options
author | Zubin Duggal <zubin.duggal@gmail.com> | 2022-03-08 18:49:40 +0530 |
---|---|---|
committer | Matthew Pickering <matthewtpickering@gmail.com> | 2022-03-08 22:55:03 +0000 |
commit | 1550a82419d4608e4337ba8f2ce02730f9b73ff3 (patch) | |
tree | b6adf474479404da62746459a56c0546178581f0 | |
parent | a60ddffd75b9ff07b948ea8cdc71f677a4f8d167 (diff) | |
download | haskell-wip/T16415.tar.gz |
testsuite: Add testcase for #16415wip/T16415
-rw-r--r-- | testsuite/tests/ghci/scripts/T16415.script | 2 | ||||
-rw-r--r-- | testsuite/tests/ghci/scripts/T16415.stdout | 8 | ||||
-rwxr-xr-x | testsuite/tests/ghci/scripts/all.T | 1 |
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']) |