1

I have a folder full of literate Haskell notes which are sequentially organized like this:

\lhs_notes
  '1 - Intro.lhs'
  '2 - Seq.lhs'
  ...

And each of these files define a module Intro, Seq, and so on. Is there a way to specify in a .cabal file explicit paths for all these modules? Because for organisational purposes, I want to keep the names of the files as they are, but I have no idea how to make cabal find any of these modules.

2 Answers 2

2

No. But you can make links or symlinks in another directory, giving a FS layout like:

| alphabetical
+---
|   | BetterSeq.lhs
|   | Intro.lhs
|   | Seq.lhs
|
| logical
 ---
    | 1 - Intro.lhs -> ../alphabetical/Intro.lhs
    | 2 - Seq.lhs -> ../alphabetical/Seq.lhs
    | 3 - BetterSeq.lhs -> ../alphabetical/BetterSeq.lhs
Sign up to request clarification or add additional context in comments.

Comments

2

Not a direct answer, which may well be possible, but you could also name the modules in a particular way, such as L1.Intro, L2.Seq, etc.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.