Skip to content

Commit

Permalink
Fix imports and make hexVect local
Browse files Browse the repository at this point in the history
It *should* compile now
  • Loading branch information
reynir committed Oct 12, 2013
1 parent a30a9c1 commit 9cbb5db
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Prelude/Bits.idr
@@ -1,18 +1,18 @@
module Prelude.Bits

import Prelude.Strings
import Prelude.Vect

%access public
%default total

private
hexVect : Vect 16 Char
hexVect = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F']

private
toHexDigit : Fin 16 -> Char
toHexDigit n = index n hexVect
toHexDigit n = index n hexVect where
hexVect : Vect 16 Char
hexVect = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'A', 'B', 'C', 'D', 'E', 'F']

b8ToString : Bits8 -> String
b8ToString c = pack [c1, c2] where
Expand Down

0 comments on commit 9cbb5db

Please sign in to comment.