~jaro/balkon

ref: 8537ba994a9fe1d81fd7138dfceef32f718b8231 balkon/src/Data/Text/ParagraphLayout/Internal/BiDiLevels.hs -rw-r--r-- 374 bytes
8537ba99Jaro Move BiDi Level to separate module. 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
module Data.Text.ParagraphLayout.Internal.BiDiLevels (Level, WithLevel, level)
where

import Data.Word (Word8)

-- | BiDi level, between 0 and 125 inclusive.
-- Even values mean left-to-right text.
-- Odd values mean right-to-left text.
type Level = Word8

-- | Typeclass for any data structure with an associated BiDi level.
class WithLevel a where
    level :: a -> Level