The simplest Unix tools are true
and false
, little programs that do nothing but return 0 and 1 respectively to the operating system and exit. An example in C might look like the below:
// true - does nothing successfully
int main(void) {
return 0;
}
Through searching, I haven't been able to find a way to implement this kind of functionality in Haskell. Is there anything in the IO monad that can do this?
Use one of the functions defined in System.Exit.
See System.Exit.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With