File: ReadFile.hs

package info (click to toggle)
bali-phy 3.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,608 kB
  • sloc: cpp: 67,094; xml: 4,074; perl: 3,715; haskell: 1,861; yacc: 1,067; python: 555; lex: 528; sh: 259; makefile: 20
file content (9 lines) | stat: -rw-r--r-- 286 bytes parent folder | download
1
2
3
4
5
6
7
8
9
module Data.ReadFile where

builtin builtin_read_file 1 "read_file" "Data"
builtin string_to_double 1 "string_to_double" "Data"

read_file filename = list_from_vector $ builtin_read_file (listToString filename)

read_file_as_double filename = map string_to_double $ read_file filename