I need to find a way to implicitly call a function in Haskell in a similar way that you can do using implicit
functions in Scala.
I've looked into using {-# LANGUAGE ImplicitParams #-}
like shown in Implicit parameter and function but I can't figure out how to achieve something similar without explicitly defining it.
This is a very reduced version of my code
a :: Int -> Int
a n = n + 1
b :: [Char] -> Int
b cs = length cs
I want to be able to run
Test> a "how long" -- outputs 8, as it implicitly calls a (b "how long")
as well as
Test> a 5 -- outputs 6