How to build a package?

I used cabal unpack to get the source of a package to read. Now I want to make a change. How do I tell Haskell Platform to make that (the same way cabal knows how to) and do so with the provided files rather than downloading into temp. I got a package to work before using Leksah, but I'd like to do it directly since the cabal file is present and works just fine. A related issue: what should I do about the local copy of a module name that is also installed? Can I make my project use that instead, without having to globally change the name in all the files?

On Tue, 22 Apr 2014 20:52:04 +0200, John M. Dlugosz
I used cabal unpack to get the source of a package to read. Now I want to make a change. How do I tell Haskell Platform to make that (the same way cabal knows how to) and do so with the provided files rather than downloading into temp. I got a package to work before using Leksah, but I'd like to do it directly since the cabal file is present and works just fine.
Go to the directory where the .cabal file is, and type cabal install without a package name.
A related issue: what should I do about the local copy of a module name that is also installed? Can I make my project use that instead, without having to globally change the name in all the files?
You can use a GHC extension, to specify the package to use, see http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html look for Package-qualified imports Regards, Henk-Jan van Tuyl -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

On 4/23/2014 8:01 AM, Henk-Jan van Tuyl wrote:
Go to the directory where the .cabal file is, and type cabal install without a package name.
Ah, I see. I was looking for a makefile or something that was part of the package. But won't that "install" it, overwriting the normal one?
A related issue: what should I do about the local copy of a module name that is also installed? Can I make my project use that instead, without having to globally change the name in all the files?
You can use a GHC extension, to specify the package to use, see http://www.haskell.org/ghc/docs/latest/html/users_guide/syntax-extns.html look for Package-qualified imports
Regards, Henk-Jan van Tuyl

Am 23.04.2014 18:44 schrieb "John M. Dlugosz"
On 4/23/2014 8:01 AM, Henk-Jan van Tuyl wrote:
Go to the directory where the .cabal file is, and type cabal install without a package name.
Ah, I see. I was looking for a makefile or something that was part of
the package. You can consider the *.cabal file a Makefile describing the package.
But won't that "install" it, overwriting the normal one?
Yes. But you could enter the cabal-file and change the name of the package. There are ways to tell fh-wedel which package it shall use on compiletime.

On 4/23/2014 11:59 AM, Norbert Melzer wrote:
Yes. But you could enter the cabal-file and change the name of the package. There are ways to tell fh-wedel which package it shall use on compiletime.
What's fh-wedel? GOogle only turns up a university of applied sciences in Germany. Changing the name of the package would not change the name of the modules inside it, or is there a prefix I can add automatically or something?

Google is right on FH Wedel, however, what I really wanted to write was
ghci instead. Auto correction on my must have gone wild ;-)
Am 24.04.2014 06:01 schrieb "John M. Dlugosz"
On 4/23/2014 11:59 AM, Norbert Melzer wrote:
Yes. But you could enter the cabal-file and change the name of the package. There are ways to tell fh-wedel which package it shall use on compiletime.
What's fh-wedel? GOogle only turns up a university of applied sciences in Germany.
Changing the name of the package would not change the name of the modules inside it, or is there a prefix I can add automatically or something?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
participants (4)
-
Henk-Jan van Tuyl
-
John M. Dlugosz
-
Karl Voelker
-
Norbert Melzer