begriffs 2017-01-29 16:59:15
Is it possible to build a cabal file which has a test-suite but no library or executable?
begriffs 2017-01-29 16:59:34
I keep getting errors about it not finding the Main module, but my test has a one.
orzo 2017-01-29 16:59:49
try using Main-is
begriffs 2017-01-29 17:00:06
Tried that :(
xpika 2017-01-29 17:00:09
is there a version of getChar that will return 1 character and not just 1 grapheme ?
begriffs 2017-01-29 17:00:17
But earlier in the build it says "No executables and no library found. Nothing to do."
orzo 2017-01-29 17:00:25
do you mean 1 byte, xpika?
begriffs 2017-01-29 17:00:29
So maybe it is giving up before even building things from the test-suite.
orzo 2017-01-29 17:00:49
probably Data.ByteString.Char8 has it
xpika 2017-01-29 17:01:00
orzo: I mean a character, including its diacritics
Koterpillar 2017-01-29 17:01:11
xpika: what do you want to use it for?
Koterpillar 2017-01-29 17:01:35
(also, I think Unicode defines a "grapheme cluster")
Koterpillar 2017-01-29 17:02:41
xpika: and how many graphemes do 힌 and ジ have?
begriffs 2017-01-29 17:03:40
Ah my problem is an instance of https://github.com/commercialhaskell/stack/issues/2862
xpika 2017-01-29 17:04:29
Koterpillar: they both have 1
xpika 2017-01-29 17:04:34
°͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ has 26
Koterpillar 2017-01-29 17:05:22
then I don't think you'll find that function anywhere
xpika 2017-01-29 17:05:22
getChar only returns the first one
xpika 2017-01-29 17:05:42
Koterpillar: you have searched all of hackage have you ?
Koterpillar 2017-01-29 17:06:39
nope, what I'm trying to say is, it's unlikely someone else had the same (guessing invalid) understanding of Unicode as you
Koterpillar 2017-01-29 17:07:39
xpika: note that ㅎㅏㄴ can be combined to look like what I posted earlier
xpika 2017-01-29 17:07:57
Koterpillar: you mean "valid"
Koterpillar 2017-01-29 17:08:17
I mean "likely not corresponding to the definitions in the Unicode standard"
Koterpillar 2017-01-29 17:08:27
and no, I haven't read all of the standard
Koterpillar 2017-01-29 17:09:01
OK, re-reading what you said, I _think_ you want a grapheme cluster
Koterpillar 2017-01-29 17:10:59
xpika: I'd start with Data.Text.ICU
orzo 2017-01-29 17:11:03
is a character the same as a grapheme
orzo 2017-01-29 17:11:25
google told me "The collection of characters to make up a glyph is a grapheme cluster."
orzo 2017-01-29 17:11:40
which doesn't really add a lot of clarity heh
Koterpillar 2017-01-29 17:11:54
orzo: you don't really want to deal with characters
Koterpillar 2017-01-29 17:12:40
ironically, as a concept they are less useful than grapheme clusters and code points
orzo 2017-01-29 17:13:53
does getChar mean grapheme or code point?
orzo 2017-01-29 17:14:04
probably codePoint
Koterpillar 2017-01-29 17:14:09
Char is a code point AFAIR
orzo 2017-01-29 17:14:19
i think Char is only a 32bit primitive
Maxdamantus 2017-01-29 17:31:05
Char theoretically has about as much to do with a character as Word8 does.
Maxdamantus 2017-01-29 17:31:24
One just happens to be able to represent more characters than the other in one unit.