Search Haskell Channel Logs

Sunday, February 19, 2017

#haskell channel featuring lyxia, pavonia, maybefbi, megaTherion, Bish, suppi,

megaTherion 2017-02-19 00:47:46
Im looking for some doc/instruction how to cross-compile with ghc, anyone knowing this?
Bish 2017-02-19 00:53:16
haskell seems to be a great language
Bish 2017-02-19 00:53:35
but it does stupid things here and there which would've been easily avoided
pavonia 2017-02-19 00:54:39
Bish: For example?
maybefbi 2017-02-19 01:00:55
any body here who was interviewed by Standard Chartered? How hard was it? Was it as hard as an informatics olympiad? On leetcode would you classify it as Easy, Medium or Hard?
osa1 2017-02-19 01:14:06
ertes: a write-only type with contravariant instance is not as useful IMO, because it can't provide a `modify` function
osa1 2017-02-19 01:19:04
actually I think it's completely useless
Bish 2017-02-19 01:35:49
pavonia: having to write iNADDR_ANY?
Bish 2017-02-19 01:36:15
that is like superannoying.. there are 1001293123 different ways of writing names
Bish 2017-02-19 01:36:18
camecase, snake case
Bish 2017-02-19 01:36:24
and.. haskellcase, as it seems?
Bish 2017-02-19 01:36:26
geez
suppi 2017-02-19 01:37:49
variables start with lowercase letters, concrete types and constructors with uppercase
suppi 2017-02-19 01:37:53
pretty simple
Bish 2017-02-19 01:38:37
except that you need constants from ohter languages, that are well known with their caps presenetation
suppi 2017-02-19 01:40:06
so you either prefix them with something or use lowercase
pavonia 2017-02-19 01:40:29
Bish: It's the programmers decision to name it like that. What has that to do with the language?
Bish 2017-02-19 01:40:58
pavonia: yeah you might be right with that.. but i would've liked another operator for that
Bish 2017-02-19 01:41:08
instead of having such a strict naming conventation
Bish 2017-02-19 01:41:23
i mean iNADDR.. jesus, who does that.. sorry but that really hurts me
suppi 2017-02-19 01:41:56
the strict naming convention becomes incredibly natural, consistent and predictable after a day or two :)
pavonia 2017-02-19 01:42:47
Also, you can of course define mySuperFancyName = iNADDR_ANY
lyxia 2017-02-19 01:44:59
now there are pattern synonyms.