What are the key differences between the Repa 2 and 3 APIs?

后端 未结 2 2008
[愿得一人]
[愿得一人] 2020-12-30 07:59

To be more specific, I have the following innocuous-looking little Repa 3 program:

{-# LANGUAGE QuasiQuotes #-}

import Prelude hiding (map, zipWith)
import          


        
2条回答
  •  失恋的感觉
    2020-12-30 08:33

    computeP is the new force.

    In Repa 3 you need to use computeP everywhere you would have used force in Repa 2.

    The Laplace example from repa-examples is similar to what you're doing. You should also use cmap instead of plain map in your blur function. There will be a paper explaining why on my homepage early next week.

提交回复
热议问题