diff options
Diffstat (limited to 'libraries/base/tests/read-show-solo.hs')
-rw-r--r-- | libraries/base/tests/read-show-solo.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libraries/base/tests/read-show-solo.hs b/libraries/base/tests/read-show-solo.hs new file mode 100644 index 0000000000..553e837836 --- /dev/null +++ b/libraries/base/tests/read-show-solo.hs @@ -0,0 +1,9 @@ +module Main (main) where +import Data.Tuple (Solo (..)) + +main = do + print $ Solo (3 :: Int) + print $ Solo (Just "") + print $ Just (Solo "") + print (read (show (Solo (3 :: Int))) :: Solo Int) + print (read "Just Solo { getSolo = 5 }" :: Maybe (Solo Int)) |