It seems that the only way to document function parameters is to use the -- ^ docs here
style. Unfortunately, this gets very unwieldy when function parameters are of different lengths. For example:
myFunc :: (Int -> String -> Bool -> IO ()) -- ^ documentation string #1
-> Int -- ^ documentation string #2
-> String -- ^ documentation string #3
-> Bool -- ^ documentation string #4
-> IO () -- ^ documentation string #5
Converting the above to the following, takes a lot of manual effort:
myFunc :: (Int -> String -> Bool -> IO ()) -- ^ documentation string #1
-> Int -- ^ documentation string #2
-> String -- ^ documentation string #3
-> Bool -- ^ documentation string #4
-> IO () -- ^ documentation string #5
Is there any automated way of doing this in Emacs? Or is there any other, more manageable way, of writing this documentation?