This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module Main exposing (..) | |
| {-| Free monad + interpreter in Elm | |
| -} | |
| import Dict exposing (Dict) | |
| {-| Dict String Int-like structure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fs = require('fs'); | |
| const { spawn, fork } = require('child_process'); | |
| const path_a = 'pipe_a'; | |
| const path_b = 'pipe_b'; | |
| let fifo_b = spawn('mkfifo', [path_b]); // Create Pipe B | |
| fifo_b.on('exit', function(status) { | |
| console.log('Created Pipe B'); |