冲突教程示例中“纯”关键字的目的是什么?

Fab*_*enM 0 haskell hdl clash

在Clash官网,有如下例子:

>>> sampleN @System 4 (register 0 (pure (8 :: Signed 8)))
Run Code Online (Sandbox Code Playgroud)

我知道什么是纯函数,但为什么这里有这个关键字?如果我删除它,我会收到一个错误:

Clash.Prelude> sampleN @System 4 (register 0 (8 :: Signed 8))

<interactive>:2:32: error:
    * Couldn't match expected type `Signal System a'
                  with actual type `Signed 8'
    * In the second argument of `register', namely `(8 :: Signed 8)'
      In the third argument of `sampleN', namely
        `(register 0 (8 :: Signed 8))'
      In the expression: sampleN @System 4 (register 0 (8 :: Signed 8))
    * Relevant bindings include it :: [a] (bound at <interactive>:2:1)
Run Code Online (Sandbox Code Playgroud)

任何线索?

Dan*_* D. 5

Signal具有的一个实例Applicative,其pure所属。pure :: a -> Signal dom a将类型值提升Signed 8Signal dom (Signed 8). 统一了与Signal System a在导致在这方面Signal System (Signed 8)

使用的参考:http : //hackage.haskell.org/package/clash-prelude-1.0.0/docs/Clash-Signal.html