How to show schema definition on OpenApi/Haskell? I'm going to convert Haskell's ADT to JSON Schema with Library from code : if rendered to JSON Schema encodePretty $ toSchema $ (Proxy :: Proxy Size) it returned expected, but it only genera…
Posted 1 year ago (27 March 2023)
Hey minette2400, found your YT API curl code on SO: I tried to turn it into an Apple Shortcuts command and stumbled over something odd: Only if the string for the params field is encoded with the newline and dash \n\x0b do I get the subtitles.
Posted 1 year ago (20 March 2023)
Using chainl1 correctly with infix in Haskell For the MVE code below it outputs rather than the expected Not (Oper Eq 2 2)) for the input parseString "2+2" which is supposed to call pOper. My guess is that pOper would expect three arguments for the a…
Posted 1 year ago (19 December 2022)
Can't read from a file in haskell I have been trying to use the readFile syntax in haskell but when I try to do it i get an error which I don't know how to fix. My code: import System.Environment maze_path = "maze2.txt" get_maze :: String -> IO [Str…
Posted 1 year ago (16 December 2022)
nextjs Unrelated to Next 13 but I hit a weird "next/babel" not installed issue, maybe due to VS Code PrettierCode extension And I don't use Babel here Disabling Prettier extension in workspace did not work Had to apply this fix to shut the warning off for now:
Posted 1 year ago (31 October 2022)
Haskell Fractional a data Classification = Low | Medium | High | SuperHigh deriving () how to derive the show with this data I need to edit this `Haskell code import Types gasUsage :: (Fractional a, Ord a) => a -> Classification gasUsage = undef…
Posted 1 year ago (16 October 2022)
benbjohnson On iOS I have found it is safer to include my own SQLite than use the Apple-supplied version. Details SQLite itself is better than flat files for my apps - I’ve done both w/ eggheadgamesllc. Especially for RO bundle data (tho Android needs a copy)
Posted 2 years ago (29 July 2022)
ask - machine code in a human readable way. Microsoft has caused confusion by using the same word to name what would be the ByteCode produced by their dotNET compilers. So in this case I'd say what "" means to Java runtime is like this new use .
Posted 2 years ago (19 July 2022)
Can I load a Numeric.LinearAlgebra.Static vector from a pointer I want to pass double-arrays to/from a library with Foreign.Marshal.Array, but in my Haskell code, I want to use statically sized vectors from Numeric.LinearAlgebra.Static. My min…
Posted 2 years ago (22 March 2022)
EverRelative Actually you just generated source codes with (.m files). So you can take the generated source codes and use them as they would be your own written ObjC codes. They don't look nice but still it's correct source code in ObjC.
Posted 2 years ago (21 February 2022)
GeePawHill aurynn joinmastodon I wound up porting it as it was the only competent code for doing federated twitter like stuff with open source & while I keep a mastodon server up on tor its something I rarely use. () is hard to describe.. I thought FORTH was a wee bit odd
Posted 2 years ago (12 February 2022)
davidfoxio Here's a great explanation why some jQuery plugins use the leading semicolons in their code Quote: "The semi-colon is there in case you include this script just after some '' script that doesn't properly close off its last line with a semi-colon"
Posted 2 years ago (28 December 2021)