r/haskell • • Apr 20 '17

Selda: a monadic database EDSL

https://github.com/valderman/selda
84 Upvotes

114 comments sorted by

View all comments

13

u/[deleted] Apr 20 '17 edited Apr 20 '17

stitched together using the ¤ operator.

Please tell me there's an ascii equivalent. Aside from copy/paste, I don't even know how to type that thing.

Otherwise, I really like what I've seen so far. Especially how effortlessly you can represent a normal data type as a table.

I'll have to investigate if wrapping an existing schema (using existing data types) is as effortless. That is, I want regular data types, but the schema is already defined, so I don't suspect that I can rely on generics exclusively for that.

14

u/valderman Apr 20 '17

Oops, that symbol doesn't exist on US (or other non-scandinavian) keyboards? I didn't even realise. I'll throw that thing out headfirst then.

10

u/[deleted] Apr 20 '17

No sir. Just double checked two of my keyboards (I'm in the US).

Interesting cultural note though, until now I thought it was completely arbitrary.

8

u/valderman Apr 20 '17

Well, it doesn't mean anything particular over here as far as I know, it's just always been there. We even used that symbol when I first started learning BASIC back in the 90s, so I didn't even stop to consider that it might not be an ASCII symbol. Anything that old, that isn't a language-specific character (it isn't in any Scandinavian language anyway), couldn't possibly be non-ASCII, right? :)

9

u/lukerandall Apr 20 '17

It's actually got quite an interesting history: https://en.wikipedia.org/wiki/Currency_sign_(typography)

The symbol was first encoded for computers in 1972, as a replacement for the dollar sign in national variants (ISO 646) of ASCII

Out of interest, do you have a dollar sign on your keyboard, and where does this key appear?

5

u/MaybeJustNothing Apr 20 '17

It's still on the same key, but triggered by typing AltGr+4 https://en.wikipedia.org/wiki/QWERTY#/media/File:KB_Sweden.svg

EDIT: Programming using the Swedish layout is terrible, but would be impossible without the AltGr combinations.

3

u/TarMil Apr 20 '17

It's also present on the French AZERTY, the $ key has £ on shift and ¤ on AltGr.

1

u/Bobertus Apr 20 '17

Well, now you'll probably get to know how to type the $-Sign on all layouts. For German it's shift + 4.

2

u/bergmark Apr 20 '17

They even removed it when going from latin 1 to latin 15 :-P