[Haskell-cafe] question on the Prelude .. vis-a-vis
Hello, I am seriously punching my way to build Swish via .cabal ... My head is totally to the wall punch .. punch . Graham Lyle has written some seriously beautiful code I am trying to get to adhere to contemporary Haskell namespace convention . I still awaiting response from Graham vis-a-vis posting on Hackage ... I strongly think that in bioinformatics and also oil/gas industry(<< I am stuck here everyday ;^)) that Swish is a strong arena of discussion! In any case .. there are some issues: 1) I strongly suspect that in Swish 0.2.1 that some of Graham's libaries are already superseded by the Haskell prelude , e.g. HUnit, Parsec(!!!), his Sort directory/library .. Don ...please 2) Graham wrote a deterministic finite automaton . which is giving some grieve namespace-wise . please see following Swish/HaskellRDF/Dfa/Dfa.lhs:1:0: Failed to load interface for `Prelude': it is a member of package base, which is hidden vigalchin here is a fragement of Dfa.lhs: > {-# OPTIONS -fglasgow-exts #-} > {-# OPTIONS -fallow-undecidable-instances #-} > module Swish.HaskellRDF.Dfa.Dfa ( > Re(..), > matchRe, > matchRe2 > ) where > {- > import Control.Monad.Identity > import Control.Monad.Reader > import Control.Monad.State > import Data.FiniteMap > import List > import Data.Array > -} import IOExts The type of a regular expression. > data Re t "Dfa.lhs" 609 lines, 18871 characters Very kind regards, Vasili ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question on the Prelude .. vis-a-vis
Excerpts from Vasili I. Galchin's message of Wed May 13 07:17:06 +0200 2009: > Hello, > > I am seriously punching my way to build Swish via .cabal ... My head > is totally to the wall punch .. punch . [...] > Swish/HaskellRDF/Dfa/Dfa.lhs:1:0: > Failed to load interface for `Prelude': > it is a member of package base, which is hidden You want to add 'base' to the 'Build-Depends:' field of the cabal file. -- Nicolas Pouillard ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question on the Prelude .. vis-a-vis
"Vasili I. Galchin" wrote: > Graham Lyle has written some seriously beautiful code That would be Graham _Klyne_. > 1) I strongly suspect that in Swish 0.2.1 that some of Graham's > libaries are already superseded by the Haskell prelude , e.g. HUnit, > Parsec(!!!), his Sort directory/library Graham includes in his source distribution a full (but out-of-date) copy of Parsec and HUnit. I would recommend to remove them, and depend on released Hackage versions (probably both 1.0 or thereabouts). The Sort library came from Ralf Hinze http://www.informatik.uni-bonn.de/~ralf/software.html It has not been cabalised or uploaded to Hackage. > > {-# OPTIONS -fglasgow-exts #-} Should become {-# LANGUAGE ... #-} where the "..." needs to be determined by experimentation. > > import Control.Monad.Identity > > import Control.Monad.Reader > > import Control.Monad.State These are in package mtl. > > import Data.FiniteMap Data.FiniteMap no longer exists - it was superseded by Data.Map. The two APIs are similar, except that the order of arguments is generally reversed. Regards, Malcolm ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question on the Prelude .. vis-a-vis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On Wed, May 13, 2009 at 6:25 AM, Malcolm Wallace wrote: ... >> > import Data.FiniteMap -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iEYEAREKAAYFAkoKvusACgkQvpDo5Pfl1oK6kACfUzsOoMmfYrxegcnSUtluXZF8 G4gAn1AS66xWzHzzt/A1mfIQg8HTF7d2 =rwt5 -END PGP SIGNATURE- > > Data.FiniteMap no longer exists - it was superseded by Data.Map. > The two APIs are similar, except that the order of arguments is > generally reversed. > > Regards, > Malcolm But if he's feeling lazy, he can use http://hackage.haskell.org/cgi-bin/hackage-scripts/package/FiniteMap -- gwern ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
Re: [Haskell-cafe] question on the Prelude .. vis-a-vis
thanks, Nicolai. Vasili On Wed, May 13, 2009 at 2:44 AM, Nicolas Pouillard < nicolas.pouill...@gmail.com> wrote: > Excerpts from Vasili I. Galchin's message of Wed May 13 07:17:06 +0200 > 2009: > > Hello, > > > > I am seriously punching my way to build Swish via .cabal ... My > head > > is totally to the wall punch .. punch . > > [...] > > > Swish/HaskellRDF/Dfa/Dfa.lhs:1:0: > > Failed to load interface for `Prelude': > > it is a member of package base, which is hidden > > You want to add 'base' to the 'Build-Depends:' field of the cabal file. > > -- > Nicolas Pouillard > ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe