Skip to content

HasBigDecimal 0.2 does not provide getScale and getValue #188

@juhp

Description

@juhp
Building library for avro-0.6.1.1..                                                                                                 
[ 8 of 21] Compiling Data.Avro.Schema.Decimal                                                                                       
                                                                                                                                    
/var/stackage/work/unpack-dir/unpacked/avro-0.6.1.1-c8abdd5c2d67341d5f6a1d2d3b53ca282e000be1c281ae35e370b50a65e1b08c/src/Data/Avro/Schema/Decimal.hs:28:23: error:                                                                                                      
    Not in scope: ‘D.getScale’                                                                                                      
    Module ‘Data.BigDecimal’ does not export ‘getScale’.                                                                            
   |                                                                                                                                
28 |         new = if ss > D.getScale d                                                                                             
   |                       ^^^^^^^^^^                                                                                               
                                                                                                                                    
/var/stackage/work/unpack-dir/unpacked/avro-0.6.1.1-c8abdd5c2d67341d5f6a1d2d3b53ca282e000be1c281ae35e370b50a65e1b08c/src/Data/Avro/Schema/Decimal.hs:29:37: error:                                                                                                      
    Not in scope: ‘D.getValue’                                                                                                      
    Module ‘Data.BigDecimal’ does not export ‘getValue’.                                                                            
   |                                                                                                                                
29 |                  then D.BigDecimal (D.getValue d * 10 ^ (ss - D.getScale d)) ss                                                
   |                                     ^^^^^^^^^^                                                                                 
                                                                                                                                    
/var/stackage/work/unpack-dir/unpacked/avro-0.6.1.1-c8abdd5c2d67341d5f6a1d2d3b53ca282e000be1c281ae35e370b50a65e1b08c/src/Data/Avro/Schema/Decimal.hs:29:63: error:                                                                                                      
    Not in scope: ‘D.getScale’                                                                                                      
    Module ‘Data.BigDecimal’ does not export ‘getScale’.                                                                            
   |                                                                                                                                
29 |                  then D.BigDecimal (D.getValue d * 10 ^ (ss - D.getScale d)) ss                                                
   |                                                               ^^^^^^^^^^                                                       
                                                                                                                                    
/var/stackage/work/unpack-dir/unpacked/avro-0.6.1.1-c8abdd5c2d67341d5f6a1d2d3b53ca282e000be1c281ae35e370b50a65e1b08c/src/Data/Avro/Schema/Decimal.hs:33:37: error:                                                                                                      
    Not in scope: ‘D.getValue’                                                                                                      
    Module ‘Data.BigDecimal’ does not export ‘getValue’.                                                                            
   |                                                                                                                                
33 |           else Just $ fromInteger $ D.getValue new                                                                             
   |                                     ^^^^^^^^^^           

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions