Questions tagged [shelly]

Shelly is a small Haskell library to support scripting tasks.

Shelly is a Haskell library to support writing scripts in Haskell that would normally be written in Bash or some other scripting language. It provides functions for basic shell commands such as pwd, cd, mv, etc. as well as environment access.

Shelly commands must be run in the ShIO monad which is sandboxed so that each instance of the monad is thread safe.

17 questions
0
votes
1 answer

How can I handle multiple lines of output when running external processes with Shelly?

I'm looking for a function of type Text -> [Text], essentially that would split text based by newlines. However I can't just split on \n as this could be escaped for example as in \\n, I'm not sure what other complications exist. Main.hs {-#…
Chris Stryczynski
  • 30,145
  • 48
  • 175
  • 286
-1
votes
1 answer

Shelly - ajax api call return always error

I've developed a graphich interface for check all smart device in my home, but when I try to make a ajax call to shelly api for check the device status I get always error. If I utilize postman I able get the json result, but when make the same call…
Isaksonn
  • 1
  • 1
1
2