show) (writeBrewfile >=> \_ -> putStrLn "Brewfile generated!") all getInstalledApps :: IO getInstalledApps = do filePaths filePaths pure $ Cask names fetchInstallableAppsWithBrew :: IO fetchInstallableAppsWithBrew = runReq defaultHttpConfig $ do res unNames ( Response xs) = unName xs where unName :: Package -> String unName ( Package name) = head name getBrewDumpLines :: IO ( Either ParseError ) getBrewDumpLines = do out IO () writeBrewfile = writeFile "Brewfile". Hamler is a strongly-typed language with compile-time typechecking and built-in support for concurrency and distribution. View the Project on GitHub hamler-lang/hamler. If the installation went well, the console should look something like. Haskell-style functional programming language running on Erlang VM. : "name" data BrewfileLine = Tap String | Brew String | Cask String deriving ( Eq) instance Show BrewfileLine where show ( Tap s) = "tap \"" s "\"" show ( Brew s) = "brew \"" s "\"" show ( Cask s) = "cask \"" s "\"" instance Ord BrewfileLine where ( lines either (die. OSX with Homebrew: brew cask install haskell-platform OSX with MacPorts: sudo port install haskell-platform Once installed, it should be possible to start GHCi by invoking the ghci command anywhere in the terminal. #!/usr/bin/env stack deriving ( Generic, Show, ToJSON) instance FromJSON Package where parseJSON = withObject "Package" $ \v -> Package v.
0 Comments
Leave a Reply. |