[Haskell-beginners] Cabal modules and directories

Rehno Lindeque errantkid at gmail.com
Thu Mar 4 12:40:19 EST 2010


On Thu, Mar 4, 2010 at 7:11 PM, Daniel Fischer <daniel.is.fischer at web.de> wrote:
> Am Mittwoch 03 März 2010 21:08:07 schrieb Rehno Lindeque:
>> On Wed, Mar 3, 2010 at 9:59 PM, Daniel Fischer <daniel.is.fischer at web.de>
> wrote:
>> > Am Mittwoch 03 März 2010 20:35:41 schrieb Rehno Lindeque:
>> >> Thanks, moving the file to src/semanticdb/OSIX works. However, I
>> >> would prefer it if restructuring my directories weren't necessary. Is
>> >> it possible?
>> >
>> > No, the hierarchical module names map directly to the directory
>> > structure, module A.B.C must be in the file C.[l]hs in the directory
>> > A/B, viewed from the root of the source tree (the directory you name
>> > in hs-source-dirs).
>
> Ah, actually I misremembered, according to
>
> http://hackage.haskell.org/trac/haskell-
> prime/wiki/DottedHierarchicalModules
>
> you can also have the file with dots in the filename.

Mmm, I tried it out but it doesn't seem to work for me. I found this
extensions support matrix on
http://hackage.haskell.org/trac/haskell-prime/wiki/HaskellExtensions
that indicates that GHC doesn't support DottedHierarchicalModules. It
appears to be a JHC extension...


More information about the Beginners mailing list