Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to "hide" language extensions?

Tags:

haskell

I have written a module and in order to run the main code where the module is imported needs to have the language extension {-# LANGUAGE OverloadedStrings #-} or the option needs to be given when things are compiled of course.

If I include the {-# LANGUAGE OverloadedStrings #-} in the module this is no cure and the user will still need to do the same in her code or when compiling.

Is there any way that I can do "something" in the actual module in order to lift this problem from the end user and so to speak "hide" the required language extension?

like image 976
J Fritsch Avatar asked Jun 14 '12 14:06

J Fritsch


1 Answers

No, your library exposes features that require language extensions to be used. This is something you should state in your documentation and examples. There's no way to turn it on on user code.

like image 81
Don Stewart Avatar answered Nov 06 '22 09:11

Don Stewart