File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change 76
76
] ;
77
77
text =
78
78
let
79
- # TODO: add
80
- p2prcMainContent = availablePort : availableUrl :
81
- ''
82
- module Main where
83
-
84
- import P2PRC
85
- ( runP2PRC
86
- , MapPortRequest(MkMapPortRequest)
87
- )
88
-
89
- main :: IO ()
90
- main =
91
- runP2PRC
92
- ( MkMapPortRequest ${ availablePort } "${ availableUrl } .akilan.io"
93
- )
94
- '' ;
95
-
96
- mainFileContent = p2prcMainContent ( builtins . toString 8080 ) "haskell" ;
79
+ # TODO: add the content for the main file
80
+ # p2prcMainContent = availablePort: availableUrl:
81
+ # ''
82
+ # module Main where
83
+ #
84
+ # import P2PRC
85
+ # ( runP2PRC
86
+ # , MapPortRequest(MkMapPortRequest)
87
+ # )
88
+ #
89
+ # main :: IO ()
90
+ # main =
91
+ # runP2PRC
92
+ # ( MkMapPortRequest ${availablePort} "${availableUrl}.akilan.io"
93
+ # )
94
+ # '';
95
+ #
96
+ # mainFileContent = p2prcMainContent (builtins.toString 8080) "haskell";
97
97
in
98
98
''
99
99
clear
117
117
118
118
sed -i 's/base.*$/base, p2prc/' "$PROJECT_DIR".cabal
119
119
120
- cat ${ mainFileContent } > app/Main.hs
120
+ # cat ${ mainFileContent } > app/Main.hs
121
121
122
122
cabal2nix . > ./cabal.nix;
123
123
cabal2nix . --shell > shell.nix
You can’t perform that action at this time.
0 commit comments