Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HasBigDecimal 0.2 does not provide getScale and getValue #188

Open
juhp opened this issue Sep 1, 2022 · 0 comments
Open

HasBigDecimal 0.2 does not provide getScale and getValue #188

juhp opened this issue Sep 1, 2022 · 0 comments

Comments

@juhp
Copy link

juhp commented Sep 1, 2022

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                                                                             
   |                                     ^^^^^^^^^^           
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant