elm-script
elm-script copied to clipboard
Experimental command-line scripting for Elm
```elm mapBoth : (Result e a -> Result e1 a1) -> Script e a -> Script e1 a1 mapBoth map = Script.attempt >> Script.thenWith (\result -> case map result of...
- [ ] `NetworkConnection.sendAll : List (Request a) -> Script Error (List a)` - [ ] `File.readAll : List (File (Read p)) -> Script Error (List String)` - [ ]...
Have `InputStream` and `OutputStream` types that allow streaming I/O on files, standard in, standard out etc. Allow converting `File` values into corresponding streams: ```elm File.toInputStream : File (Read p) ->...
- Should `Directory.delete` delete recursively by default, or fail on non-empty directories? - How should copy/move work if the destination is not empty?
Something like ```elm module Script.WebSocket type Connection -- Connection got closed somehow, etc. type Error -- Connect to a URL (and keep the connection alive) connect : String -> NetworkConnection...