String
is a type, not a typeclass, so you can (must) just use it as-is in the type signature.
cutString :: Num n => n -> String -> String
More Related Contents:
- Why give me error? [closed]
- What is the difference between . (dot) and $ (dollar sign)?
- Good examples of Not a Functor/Functor/Applicative/Monad?
- Applicatives compose, monads don’t
- A Haskell function of type: IO String-> String
- Haskell: Parse error in pattern
- IO happens out of order when using getLine and putStr
- What is indexed monad?
- What does $ mean/do in Haskell?
- Why are polymorphic values not inferred in Haskell?
- Cabal not installing dependencies when needing profiling libraries?
- Library function to compose a function with itself n times
- Should do-notation be avoided in Haskell?
- Why doesn’t Haskell sequence these IO actions properly?
- Why doesn’t this function work if I use “[xs]” instead of “xs”?
- What is fusion in Haskell?
- Typeclass constraints on data declarations
- Why can a Num act like a Fractional?
- What does the `forall` keyword in Haskell/GHC do?
- How does deriving work in Haskell?
- Foldr/Foldl for free when Tree is implementing Foldable foldMap?
- What characters are permitted for Haskell operators?
- Converting IO Int to Int
- Convert String to Integer/Float in Haskell?
- Haskell – depth for each node in binary tree using Reader monad
- Comparing Haskell’s Snap and Yesod web frameworks
- Functional lenses
- How to reuse a type variable in an inner type declaration
- Is there a built-in function to get all consecutive subsequences of size n of a list in Haskell?
- How does Haskell printf work?