Search Haskell Channel Logs

Tuesday, January 31, 2017

#haskell channel featuring mrkgnao, steve___, Koterpillar, fiddlerwoaroof, geekosaur,

fiddlerwoaroof 2017-01-31 16:47:37
Set of tests for compliance to the standard?
fiddlerwoaroof 2017-01-31 16:47:54
s/^/Is there a /
Koterpillar 2017-01-31 16:48:32
which standard?
fiddlerwoaroof 2017-01-31 16:48:51
I was thinking of the Haskell98 report
geekosaur 2017-01-31 16:54:47
it'd be the haskell2010 report, but ghc is known noncompliant in several areas (Num no longer requires Eq or Show; Monad requires Applicative and thereby Functor)
fiddlerwoaroof 2017-01-31 16:56:26
Yeah, I've been doing some archeology to try to get the yale-haskell compiler running
fiddlerwoaroof 2017-01-31 16:56:54
Mostly for fun, and because I'm interested in embedding functional languages in a common lisp environment.
fiddlerwoaroof 2017-01-31 16:57:10
I sort of wanted to see how complete it is.
mrkgnao 2017-01-31 17:17:00
is there a way to not have to use liftIO when using monad transformers?
mrkgnao 2017-01-31 17:17:28
I guess what I want is things like putStrLn :: MonadIO m => String -> m ()
Koterpillar 2017-01-31 17:21:05
mrkgnao: http://hackage.haskell.org/package/safer-file-handles
steve___ 2017-01-31 17:24:29
If one were creating a module that had multiple types that all required a similar field, say "name" and there were a need to have dedicated types for each one, what is the canonical way to create several types that share the same field? Do I create the various types, all with prefixes to the name? use Ghc8s duplicate record label feature? For example data Book = Book { name :: String} data Movie = Movie
steve___ 2017-01-31 17:24:35
{ name :: String}. I often see this problem and think I must be needing to use a feature like typeclasses...but i'm not sure. Hope that makes sense! :)
mrkgnao 2017-01-31 17:30:39
steve___: you might want to check out what haskell-gi does with overloaded labels
steve___ 2017-01-31 17:34:40
So I took a quick look, but I don't see anything special. What am I missing? :(