loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8050693780967273","path":"main.hs","file":{"path":"main.hs","content":{"asEncoding":{"base64":"bWFpbiA9IGRvCiAgcHJpbnQgJCAoWyBdID4+IFsgXSA6OiBbSW50XSkKICBwcmludCAkIChbIF0gPj4gWzJdIDo6IFtJbnRdKQogIHByaW50ICQgKFsxXSA+PiBbIF0gOjogW0ludF0pCiAgcHJpbnQgJCAoWzFdID4+IFsyXSA6OiBbSW50XSkKCiAgcHJpbnQgJCAoTm90aGluZyA+PiBOb3RoaW5nIDo6IE1heWJlIEludCkKICBwcmludCAkIChOb3RoaW5nID4+IEp1c3QgMiAgOjogTWF5YmUgSW50KQogIHByaW50ICQgKEp1c3QgMSAgPj4gTm90aGluZyA6OiBNYXliZSBJbnQpCiAgcHJpbnQgJCAoSnVzdCAxICA+PiBKdXN0IDIgIDo6IE1heWJlIEludCkKCiAgcHJpbnQgJCAoTGVmdCAgMSA+PiBMZWZ0ICAyIDo6IEVpdGhlciBJbnQgSW50KQogIHByaW50ICQgKExlZnQgIDEgPj4gUmlnaHQgMiA6OiBFaXRoZXIgSW50IEludCkKICBwcmludCAkIChSaWdodCAxID4+IExlZnQgIDIgOjogRWl0aGVyIEludCBJbnQpCiAgcHJpbnQgJCAoUmlnaHQgMSA+PiBSaWdodCAyIDo6IEVpdGhlciBJbnQgSW50KQ=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
main = do
  print $ ([ ] >> [ ] :: [Int])
  print $ ([ ] >> [2] :: [Int])
  print $ ([1] >> [ ] :: [Int])
  print $ ([1] >> [2] :: [Int])

  print $ (Nothing >> Nothing :: Maybe Int)
  print $ (Nothing >> Just 2  :: Maybe Int)
  print $ (Just 1  >> Nothing :: Maybe Int)
  print $ (Just 1  >> Just 2  :: Maybe Int)

  print $ (Left  1 >> Left  2 :: Either Int Int)
  print $ (Left  1 >> Right 2 :: Either Int Int)
  print $ (Right 1 >> Left  2 :: Either Int Int)
  print $ (Right 1 >> Right 2 :: Either Int Int)
GHCi, version 8.6.5