#apache #archlinux #asterisk #centos #debian #gentoo #haskell #kde #kubuntu #lisp #math #mysql #perl #python #ruby-lang #rubyonrails #suse #ubuntu #vim #wikipedia 0 1 2 3 4 5 6 7 8 9 10
Top Prev 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 Next
#haskell
<Cale> It would be cooler if we could figure out how to do this with GHC.
<thalassocrac> i tried to use the functino Char.toUpper in hugs; i tried it as that and as toUpper, but it didn't work; does anyone know how i can use that function?
<Cale> I think we need a --beginner
<Cale> -101 or some such :)
<ddarius> DrScheme-like language levels?
<mauke> thalassocrac: how did it not work?
<Cale> thalassocrac: You need to import the Char module. The modern name is Data.Char
<ddarius> Gwern: By the way, foldr (++) [] == concat
<Cale> thalassocrac: Try :also Data.Char
<Cale> and then just use toUpper
<syntaxfree> as an economist, I feel the cohesiveness of the Java platform helps the language.
<Gwern> ddarius: really? thanks
<ddarius> @src concat
<lambdabot> concat = foldr (++) []
<thalassocrac> thank you, i'll try that
<Gwern> so it does. excellent. some more saved characters
<Cale> sequence = foldr (liftM2 (:)) (liftM return)
<Cale> er
<Cale> sequence = foldr (liftM2 (:)) (return [])
<Cale> right :)
<Cale> liftM0 []
<Cale> hehe
<xerox> Gwern permute = concat . mapM (sequence [toUpper, toLower]))
<syntaxfree> Maybe we need a marketing organism.
<ftegularius> syntaxfree: well, all else being equal, cohesiveness and consistency is always a plus, if only because it reduces some of the incidental complexity for the users
<syntaxfree> Single Haskell Implementation Technology Council.
<syntaxfree> SHITc!
<mbishop> heh
<Gwern> xerox: too many parens there?
<syntaxfree> ftregularius: I'm thinking of what makes nonprogrammers support a language.
<Cale> I kind of like the idea that Haskell is not used by too many people yet. There are still things which we'd like to change which would break lots of code.
<syntaxfree> the standard after Haskell' should be called Single Haskell Implementation Technology ;)
<ddarius> syntaxfree: There is a quite dominant Haskell implementation, and also all of them play very nicely with each other to the point of sharing the same source tree for the libraries.
<syntaxfree> I know that.
<syntaxfree> You know that,
<Cale> I want at least a few more revisions of the Prelude.
<syntaxfree> But that basically depends on ndm being a nice fellar.
<goltrpoat> i'm not sure if there's any particular need to rush things
<syntaxfree> Try to convince a PHB that ndm is a nice fellar.
<Gwern> as a beginner, I'm kind of curious. Cale, what would you want to change?
<Cale> Gwern: I'd remove fail from Monad, Reinstate MonadZero, and create MonadOr
<syntaxfree> I'd like a better numeric prelude.
<Cale> I'd make Functor a superclass of Monad, perhaps insert Applicative
<ddarius> Gwern: The module system, some syntactical issues, some extensions need to be understood better, the record system.
<syntaxfree> I mean, let's wear type clases proudly.
<Syzygy-> syntaxfree: I'm working on that. ;)
<augustss> More power to Cale!
<Cale> Factor abs and signum out of Num into their own class.
<Gwern> just from my experience so far, I'd like a Natural type
<Syzygy-> Though dunno if the NumericPrelude effort'll get merged properly with a next generation Prelude.
Previous Page Next Page