
The sources I've learned about thus far are not helping me with this one. What's "(# #)"? Haskell is search-hostile.

Hi, Dnia 2014-04-05, sob o godzinie 10:13 -0500, John M. Dlugosz pisze:
The sources I've learned about thus far are not helping me with this one. What's "(# #)"? Haskell is search-hostile.
Can you provide some context? It looks like ordinary string "(# #)" :: String or "(# #)" :: [Char] Emanuel

The quotes are in my message, not part of the thing being quoted. E.g. 'What does "+" mean between two numbers?' On 4/5/2014 10:20 AM, Emanuel Koczwara wrote:
Hi,
Dnia 2014-04-05, sob o godzinie 10:13 -0500, John M. Dlugosz pisze:
The sources I've learned about thus far are not helping me with this one. What's "(# #)"? Haskell is search-hostile.
Can you provide some context? It looks like ordinary string
"(# #)" :: String
or
"(# #)" :: [Char]
Emanuel

The user meant unboxed tuples, not a literal string. Try not to give the
questioner the benefit of the doubt and search for a better answer than,
"there's quotes, it must be a string rather than them trying to contain the
syntax they want to express!"
Anyway, Haskell isn't search hostile, Google is Haskell hostile. You can
use Symbolhound to search for symbols in web pages.
Search I used to get your answer:
http://symbolhound.com/?q=tuple+%28%23+%23%29+Haskell
What is most likely your answer:
http://www.haskell.org/ghc/docs/latest/html/users_guide/primitives.html#unbo...
Further reading:
Kinds, reference types, and value types in Haskell. Also, Alan Watts.
Double is a reference type of Kind *
Double# is an unboxed value type of Kind #
Types in Haskell default to *. This is what you want usually. Value types
are an after-the-fact optimization that shouldn't be done without the
guidance of a well-designed benchmark suite.
But yeah, not a string.
--- Chris Allen
On Sat, Apr 5, 2014 at 10:20 AM, Emanuel Koczwara wrote: Hi, Dnia 2014-04-05, sob o godzinie 10:13 -0500, John M. Dlugosz pisze: The sources I've learned about thus far are not helping me with this one.
What's "(# #)"?
Haskell is search-hostile. Can you provide some context? It looks like ordinary string "(# #)" :: String or "(# #)" :: [Char] Emanuel _______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners

On Sat, Apr 5, 2014 at 10:31 PM, Christopher Allen
The user meant unboxed tuples, not a literal string. Try not to give the questioner the benefit of the doubt and search for a better answer than, "there's quotes, it must be a string rather than them trying to contain the syntax they want to express!"
Hey, we're all here for the learning, and I for one am always discombobulated on discovering how much English I have left to learn. I think Emmanuel was perplexed and understood the question as best as he could. John, on the other hand, could probably have followed the question about the curious brackets by supplying context e.g. "And I found it here like this (# Int, Int #)." And everyone, (me especially!), please use the mailing list wisely to maintain good vibes. -- Kim-Ee

On 4/5/2014 10:31 AM, Christopher Allen wrote:
Search I used to get your answer: http://symbolhound.com/?q=tuple+%28%23+%23%29+Haskell
Thanks. That is more helpful than "sure it works!". I had tried searches like http://symbolhound.com/?q=%28%23 Since Emanuel was confused by my meta-quoting of syntax in prose, is there some (other) standard that's used in this mailing list when using plain text without markup? It's not just Google, BTW. I can't search PDF files either. The search bar on www.haskell.org itself gives "no results" and other things (I forget what) have even given syntax error!

Hi,
Since Emanuel was confused by my meta-quoting of syntax in prose, is there some (other) standard that's used in this mailing list when using plain text without markup?
My response to your question was to impulsive, sorry about that. Regards, Emanuel

On Sat, Apr 5, 2014 at 11:13 AM, John M. Dlugosz
The sources I've learned about thus far are not helping me with this one. What's "(# #)"? Haskell is search-hostile.
http://symbolhound.com :p It's an unboxed tuple, a type that is used internally (anything named with a # is GHC internals). You can't work with it normally (you need an extension to use the MagicHash), and it has a number of restrictions since most things require a constructor but an unboxed tuple doesn't have one. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On 4/5/2014 10:26 AM, Brandon Allbery wrote:
On Sat, Apr 5, 2014 at 11:13 AM, John M. Dlugosz
mailto:ngnr63q02@sneakemail.com> wrote: The sources I've learned about thus far are not helping me with this one. What's "(# #)"? Haskell is search-hostile.
Hmm, I tried symbolhound, and only found pseudocode and parenthetical remarks that happened to begin with a #, or bullet points.
It's an unboxed tuple, a type that is used internally (anything named with a # is GHC internals). You can't work with it normally (you need an extension to use the MagicHash), and it has a number of restrictions since most things require a constructor but an unboxed tuple doesn't have one.
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com mailto:allbery.b@gmail.com ballbery@sinenomine.net mailto:ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
participants (5)
-
Brandon Allbery
-
Christopher Allen
-
Emanuel Koczwara
-
John M. Dlugosz
-
Kim-Ee Yeoh