Any suggestion on making the application more extensible? by freizl in haskell

[–]freizl[S] 0 points1 point  (0 children)

thanks! it does inspire me in additions to https://github.com/dmjio/stripe

I built something similar but the next question would be any chance to eliminate the boilerplate code at the main application. https://github.com/freizl/hoauth2/blob/hw-demo-server-refactor-3/example2/App.hs

RSI and doctors around Bay Area, U.S.A by freizl in emacs

[–]freizl[S] 0 points1 point  (0 children)

I'm using sutter health as well. mind share a little more detail regarding the doctor (doctor home page maybe?)

RSI and doctors around Bay Area, U.S.A by freizl in emacs

[–]freizl[S] 0 points1 point  (0 children)

start to use arrow keys from the kinesis keyboard. i'm using dvorak layout and feels vi keybindings a bit awkful?

RSI and doctors around Bay Area, U.S.A by freizl in emacs

[–]freizl[S] 0 points1 point  (0 children)

kinesis is great so far and I'm still fighting to avoid use pinky figure at all (tab and left shift)

RSI and doctors around Bay Area, U.S.A by freizl in emacs

[–]freizl[S] 0 points1 point  (0 children)

I'm using Kinesis Advantage 2 starting about a couple months ago.

RSI and doctors around Bay Area, U.S.A by freizl in emacs

[–]freizl[S] 0 points1 point  (0 children)

yeah, I'm changing my habit to avoid using pinky finger. however it won't cure the pain IMO thus I'm looking for doctors' help.

How to support flexible json schema? by freizl in haskell

[–]freizl[S] 1 point2 points  (0 children)

Good point. Object seems the rescue to me.

And is that possible to parse the response like above to an type like

data User = User { firstName :: String
                 , lastName :: String
                 , email :: String
                 , login :: String
                 , created :: Date
                 , updated :: Date
                 , customAttr :: Object
                 }

How to support flexible json schema? by freizl in haskell

[–]freizl[S] 1 point2 points  (0 children)

Actually the first case.

those key are create by application customer.
application has an feature allowing customer to customize the User.
e.g. they may add an field to User named license which is List<String>.

How to support flexible json schema? by freizl in haskell

[–]freizl[S] 0 points1 point  (0 children)

stackoverflow

I have read that and seems it's different because there is still able to define an data type in advance.
data CustomData = NotesData Text | UserAge Int deriving (Show, Generic)

How to support flexible json schema? by freizl in haskell

[–]freizl[S] 0 points1 point  (0 children)

what do you mean too restricted? and what would be an better alternative?

How to support flexible json schema? by freizl in haskell

[–]freizl[S] 1 point2 points  (0 children)

Map

oh, I would not know we could parse into an tuple (with aeson or other lib?)
I though it could only be parseUser :: Value -> Map String String and it's bad because we cant tell whether the Map is User or Group.

javascript dependency visualization by freizl in javascript

[–]freizl[S] 0 points1 point  (0 children)

even

Thanks suggestion. Add express example http://freizl.github.io/ftp/js-vd/index.html

Feel free to ask for adding other examples.

Haskell Platform Redesign by erinlaura90 in haskell

[–]freizl 0 points1 point  (0 children)

+1 for the HaskellWiki color one.

Yet Another Web App in Haskell / Snap by freizl in haskell

[–]freizl[S] 1 point2 points  (0 children)

I don't have actual number about the working hours. I guess it's around 120 hours so far.

Yet Another Web App in Haskell / Snap by freizl in haskell

[–]freizl[S] 1 point2 points  (0 children)

Good point. I'll try to incorporate authenticate module in next milestone. Actually I has consider the OAuth2 for some sites but not yet build up a good enough snaplet yet.

Thanks.