回答編集履歴

1

fix constructor

2020/08/19 15:07

投稿

YufanLou
YufanLou

スコア463

test CHANGED
@@ -92,7 +92,7 @@
92
92
 
93
93
  ```haskell
94
94
 
95
- newtype State s x = { runState :: s -> (x, s) }
95
+ newtype State s x = State { runState :: s -> (x, s) }
96
96
 
97
97
 
98
98