Is there any way to get the path to the file where the function is defined?
For instance:
rootappdir |- Foo.hs |- Bar.hs module Foo where getThisDir :: IO Filepath getThisDir = ... prelude> getThisDir absolute/path/to/rootappdir/Foo.hs
If possible with the even simpler :: Filepath function, this is even better. Maybe we will need to use a preprocessor?
source share