首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 编译时的“计量单位”哈斯卡尔

编译时的“计量单位”哈斯卡尔

  • 资源大小:7.67 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 卡尔 编译 单位 计量

资 源 简 介

Adds static (compile time) checks a-la units of measurements to Haskell basic numerical operators via ad-hoc Num-like typeclass with phantom type parameter encoding unit of measurement. Uses type-level calculation (type-level function) to derive resulting unit of measurement whenever Num operators are used and checks for units mismatch. All the calculation and checks are purely compile-time, phantom type info is absent in run-time so not performance penalty is incurred.

文 件 列 表

units-0.1.0
LICENSE
Setup.hs
units.cabal
Data
VIP VIP
0.175459s