Nice, I built a similar toy with RNBO - https://knobs-gallery.vercel.app/harmonics
14 karma · joined June 11, 2014
You create a kanban team-managed project and it'll pretty much be a Trello board. If you want sprints or a backlog or reports you can go into the project features page and flip a switch.
https://beijaflor.io/blog/06-2020/filesaver-freeing-up-space...
Ignore all existing literature and experts' previous experience.
Simple.
function ensureServerUrl(url) {
// parse and replace with your server url
// in Este you read from a SERVER_URL environment variable
}
function fetch(url, options) {
url = ensureServerUrl(url);
return fetch(url, options);
} data DataMessage = DataMessage { company :: Text
}
deriving (Show)
$(deriveJSON defaultOptions ''DataMessage)
data DataList = DataList { _data :: [DataMessage]
}
deriving (Show)
$(deriveJSON defaultOptions { fieldLabelModifier = drop 1 } ''DataList)
Which will fail properly when the data is malformed and in the real-world is even shorter, because you can set your data-type to protocol naming conventions and share them throughout.Then there isn't much bloat. You wrote your types and generated your way to parse them.
You could test with:
main = do
print (encode (DataMessage "some-company"))
print (decode "{\"company\":\"some-company\"}" :: Maybe DataMessage)
print (encode (DataList [DataMessage "c1", DataMessage "c2", DataMessage "c3"]))
print (decode "{\"data\":[{\"company\":\"c1\"},{\"company\":\"c2\"}]}" :: Maybe DataList)
https://gist.github.com/b30f6f09a737dcc980e052b0f3d2a39eYou just annotate functions that you don't want to use the GC in with it and it'll assert that they don't use it.
http://webcache.googleusercontent.com/search?q=cache:CTMc7ZQ...