File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
preprocessed-site/posts/2020 Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ instance [safe] Testable Test.HUnit.Lang.Assertion
145145ありました!💡
146146最後の方にある`instance [safe] Testable Test.HUnit.Lang. Assertion `という行に注目してください。
147147[`Test.HUnit.Lang. Assertion `](http:// hackage. haskell. org/ package/ HUnit - 1.6 . 0.0 / docs/ Test - HUnit - Lang. html# t: Assertion )は、 `IO () `の型シノニムであり、 Hspec でも間接的に型シノニムとして参照されています[^ hspec- expectation]。
148- 要するに`instance [safe] Testable Test.HUnit.Lang. Assertion `という行は`instance [safe] Testable (IO () )`と読み替えることができます< small>( `[safe]`という表記が指しているもの付いてはここでは省略します ! すみません!)</ small>。
148+ 要するに`instance [safe] Testable Test.HUnit.Lang. Assertion `という行は`instance [safe] Testable (IO () )`と読み替えることができます< small>( `[safe]`という表記が指しているものについてはここでは省略します ! すみません!)</ small>。
149149
150150[^ hspec- expectation]: この節の冒頭で「 型シノニムのたらい回し」 と呼んだものを追いかけてみましょう。
151151おなじみ[`shouldBe` ](http:// hackage. haskell. org/ package/ hspec- expectations- 0.8 . 2 / docs/ Test - Hspec - Expectations. html# v: shouldBe)は[`Expectation `](http:// hackage. haskell. org/ package/ hspec- expectations- 0.8 . 2 / docs/ Test - Hspec - Expectations. html# t: Expectation )という型の値を返します。
You can’t perform that action at this time.
0 commit comments