Skip to content
Snippets Groups Projects
Commit 6ee35024 authored by Drew Fenwick's avatar Drew Fenwick Committed by Marge Bot
Browse files

Fix a non-compiling example in the type abstractions docs

This patch adds a missing Show constraint to a code example in the User Guide's type abstractions docs to fix issue #25422.
parent 536cdf09
No related branches found
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ part of the type argument using type constructors.
For a somewhat-contrived example::
foo :: (Num a) => Maybe [a] -> String
foo :: (Show a, Num a) => Maybe [a] -> String
foo (Nothing @[t]) = show (0 :: t)
foo (Just @[t] xs) = show (sum xs :: t)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment